Inserting a Text File as Code
Posted on 1998-08-05
I am a newbie to visual basic so any help would be greatly appreciated. I am trying to create a configuation file for my visual basic project. I need to assign variables different path names and I want to store this in a text configuation file that can be easily changed from computer to computer.
I can create a text file and read it using the Input funtion but I would rather have the text file execute as code when the main form loads.
I have found a command called InsertFile () in the VBIDE extension but I can not figure out on how to use this function since it is an Add-in. I have include the reference to this VBIDE in my Visual Basic Program but I do not know where to go from there. I can't seem to set the formtemplate to the main form that loads at startup so that it will insert the text file as code.
I do not know where to put the declarations and the functions -- should they be included in a separate module or can I put them in the main form code module?? Can you include some sample code for this problem??
Thank you in advance
Can you send an email to me at email@example.com