Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Configuration files
Message
De
26/02/1998 19:55:23
 
 
À
26/02/1998 16:42:07
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00081542
Message ID:
00081578
Vues:
21
>This is a real newbie type of question. I want to create a flat text
>file where I configure all of my variables, and then have my VB modules in both VB4 and Excel97 be able to access this information.
>
>I thought I might be able to do it by manually calling an insert command, but I havent figured out how to do that. I didnt want to have to parse the whole data file to find the various variables.
>
>I guess I could write the VB variable code off in a text file, but how will I be able to get it into my specific module at runtime?
>
>Does anyone have any suggestions or possible methods to go about this?

A few solutions:
1-write to a Text file. Look the "Open" statement.
2-write to an INI file. Look the API function "WritePrivateProfileString"
3-write to the Registry. Look "SaveSetting"
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform