Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read ini file
Message
 
À
10/10/2003 09:53:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00837366
Message ID:
00838004
Vues:
28
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform