Hi, I am looking for ideas on how to get all the function names out of a VBScript using VB. I want to put these function names in a combo box to display to the user.
With the amount of information you have supplied it is hard to tell exactly what you are asking, so for future reference I will point you to FAQ222-2244.
Now to start taking guesses at what you want.
Are you asking on how to open a file? Then check out...
FreeFile Function
Open Statement
Input Statement
Get Statement
Line Input Statement
File System Object (Microsoft Scripting Runtime)
Add items to a combo box??? Use the AddItem method
Parse strings???? Then check out the following functions...
InStr
InStrRev
Left
Mid
Right
Trim
RTrim
LTrim
The Split function also comes to mind and may help you in the future and possiblily the FileLen function.
OK, perhaps I was not clear, I thought I was. I have a VBscript, using VB I want to read through that VBScript (without running it) and get the names of all the functions that are present in that script. I then want to put the names of these functions into a VB combo box. I am fully aware of the Instr, Rtrim etc functions which are available in VB but I wondered if there was a way of getting these out without using any of those, a function that VB has or an object model perhaps?
Sorry if I did not present the question clearly enough for you initially.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.