Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INI section to array
Message
 
À
19/11/2008 14:25:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01362902
Message ID:
01362912
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>Hi..
>
>Even with the sensation of a 'Deja vu'... I'd like to ask.. If ayone over there has a VFP function to retrieve a list of entries inside of a section into some INI file.. And don't mine to share here with us
>
>Some sort of:
>
>dimension laINIentries[1,1]
>laINIentries = getinientries("myow.ini", "sectionA")
>
>TIA
>
>Claudio

NOT TESTED AT ALL:
laINIentries = getinientries("myow.ini", "sectionA")


FUNCTION GetINIEntries(lcInitFile, lcSection)
lcInitFile = FULLPATH(lcInitFile)

DECLARE INTEGER  GetPrivateProfileSection IN WIN32API STRING lcSection,;
                                                      STRING @lpReturnedString,;
                                                      INTEGER nSize,;
                                                      STRING lcINIFileName
LOCAL lcString
lcString = SPACE(8000)
IF GetPrivateProfileSection(m.lcSection, @lcString, 8000, lcInitFile) > 0
   DECLARE laLines[1]
   ALINES(laLines, lcString)
   RETURN @laLines
ENDIF
RETURN NULL
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