Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Put classes names as a link

Status
Not open for further replies.

Gti

Programmer
Jul 23, 2001
99
PT
Well, this is hard!
I have an html file that i need to open. this file have the head of some functions (e.g. Public sub (student as string) ). I need to put student as an html link if there are in a defined folder the same filename.htm as the target link (in this case, student).
Any ideia?
 
I am not sure what you mean, can you clarify a little?
 
Ok... it's kind hard to explain... let me try!
My program create *.htm files with the header of all Public functions that were written in *.cls files that are in any folder. This htm files will be name as the class name . htm (student.cls | student.htm)
So, what i need it is to open these files (htm) in way to read the headers. In the headers i need to make an html link if there are any file with the same name of the variable
(e.g. Public sub Test (Student as string))
The bold letters is my link...
did you understand? I hope so...
 
Lets see..
You will have an htm file ie: Student.html
You will have a cls file ie: Student.cls
You want to have hyper links on the Student.htm file that match the routines in your class. ie: Public Sub ME()

Assuming all the above is correct, Where do you want the link to point to?
 
I have a cls file: student.cls
that i convert to student.htm

In this htm i have all the headers of public Sub's of the cls file.
After the creation of the htm files i need to verify if in the header of any function i have, have the same string of the name of the htm file!

i.e: Public Sub XXX (Student as string)
check if any folder there are any htm file with the same name of the bold text. If exists i need to link them...



 
So you want to:
Open your htm document that contains all the names of the routines in your classes, search a folder to see if you can find another htm document whose name matches that of the name of a function in your original htm document. Then dynamically create a hyper link between the two. Does that sum it up?
 
Yes It's exactly that you have said! ;) Any help?
 
There are ways to do it, but I need to understand where you want to do it. For instance, do you want to create these links dynamically when the html page is opened, or can you have a VB program search and create the links?
 
i insert the code in VB, like:

print #1, <html>
print #1, etc etc etc

did you understand?
this way when i open the web browser i can see thepage with the link already made!
 
Anyone to understand my problem!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top