Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading and Writing to .INI files.
Message
 
To
16/07/1999 11:20:38
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00242096
Message ID:
00242337
Views:
17
>If its a custom .ini file, not a window's system one, I would use FileToStr() and StrToFile(). They are a regular part of VFP6.0 and were in foxtools before, I believe.

Hi Todd,

Sure you could use FILETOSTR() and STRTOFILE(), but I think it's a lot more straight forward (not to mention faster) to use the API. Otherwise, you have a lot of string parsing to do. BTW, neither of these functions were in Foxtools prior to their introduction to the language proper in 6.0.

While on the subject of Foxtools, two functions GetProStrg() and PutProStrg() are available in the versions of the library beginning with 5.0 at least. Unfortunately, prior to 6.0 the documentation incorrectly stated that you could read and write from any INI file. In reality, you could only use these with WIN.INI. Since it isn't mentioned, I assume that the PutProStrg() function doesn't advise other open applications in a change to WIN.INI, which should be done.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform