Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Foundation Class: INI Access
Message
De
28/06/1999 14:17:47
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
VFP Foundation Class: INI Access
Divers
Thread ID:
00234883
Message ID:
00234883
Vues:
75
I am trying to use the INI Access foundation class to retrieve information from the INI file. The code below:
PUBLIC g_cLocalPath
PUBLIC g_cServerPath
g_cLocalPath = ""
g_cServerPath = ""

* Using the non visual class oldinireg from the registry class for INI Access in the project
oIniFile = NewObject('oldinireg' , 'registry')
IF VARTYPE(oIniFile) = "O"
WITH oIniFile
.GetINIEntry(g_cLocalPath,"Preferences","Local","Cats98.ini")
.GetINIEntry(g_cServerPath,"Preferences","Server","Cats98.ini")

ENDWITH
ENDIF

In the debugging of the procedure getinientry:

m.c_value = "c:\Projects\cats98\data"

However when I call on the variable somewhere else I get an empty character string!

Thanks

Sanjay
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform