View Single Post
  #32 (permalink)  
Old 07-31-2008, 12:55 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,907
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by tsteward View Post
My problem is I create links that are the name of other text files.
Is there a way I can load the text file for interpreting
I don't do HTML but I would have thought that when you are about to make a link to a file then "interpret" it then and point the link to the "interpreted" file.

You theoretically could, in the Navigating event, check the URL and cancel navigation if it looked like a text file, "interpret" the file and reassign URL to the new file. This would cause the Navigating event to be re-entered which your code would have to cope with by checking a flag on entry or by some other means depending upon how you want to deal with it.

Code:
ReEntry = false ' in Globals
...
Sub Web_Navigating
  If Not(ReEntry) Then
    ReEntry = true
    Do stuff that might cause re-entry
    ReEntry = false
  End IF
End Sub
Reply With Quote