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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data settings on start up

Status
Not open for further replies.

orisons

Programmer
Feb 18, 2002
49
CA
I am resonably new to VB (some experience in vba) I would like to know how to use a data file to set various data settings (i,e captions, names, text etc) these items can be changed within the program so what I need is a wayon start up for the program to find these settings but also it must be ammendable within the program (from a menu, this program will be installed on various computers and the installation directory could change from machine to machine...
any help would be appriciated
 
Look into using a resource file. Look for the 'VB6 Resource Editor' in the AddIn manager.(Menu: "Addins-Addin Manager...')

zemp
 
You can see how Microsoft uses it by looking at their PDW project (Setup1). On my machine it is located in C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1.

zemp
 
This all seems very interesting but I must say that I'm not sure what this all means if anyone could make it a bit cleared I would appriciate it
 
You can place captions or text in the resource file. Then when needed your program can reference the caption it needs. This way you can have different captions for the same label and the program will determine which ones to use. A common practice for multiple languages support in a program.

If this is not what you are after take a look at the 'GetSetting' and 'SaveSetting' functions that save and recall information from the local registry. They are built in VB functions.

zemp
 
The "getsetting" sounds more like what I want as all I want to do is point to a data file on start up then the data file can take over.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top