Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read ini file
Message
From
13/10/2003 02:33:40
 
 
To
10/10/2003 09:53:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00837366
Message ID:
00838004
Views:
30
This message has been marked as the solution to the initial question of the thread.
See the WIN32API function GetPrivateProfileString
FUNCTION ReadIni(cSection, cEntry, cIniFile)

   LOCAL ret_val
   DECLARE INTEGER GetPrivateProfileString IN Win32API  AS GetPrivStr ;
           String cSection, String cKey, String cDefault, String @cBuffer, ;
           Integer nBufferSize, String cINIFile
   ret_val = SPACE(1024)
   GetPrivStr(cSection, cEntry,"",@ret_val,1024,cIniFile)

RETURN STRTRAN(ALLTRIM(ret_val), CHR(0), "")


FUNCTION WriteIni(cSection, cEntry, cString, cIniFile)

   DECLARE INTEGER WritePrivateProfileString IN Win32API AS WritePrivStr ;
           String cSection, String cKey, String cValue, String cINIFile
   WritePrivStr(cSection,cEntry,cString,cIniFile)

RETURN ""
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform