Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registry FFC Class not very funny
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00228553
Message ID:
00228781
Vues:
14
>>>Are we supposed to modify some of these ffc classes? when I use the oldini one it always returns a constant 0. thats the code, when i modify it to RETURN m.cValue its correct. So are we supposed to change it or did MS forget a step?
>>
>>Hi Mike,
>>
>>Value returned (0) represents ERROR_SUCCESS, otherwise it would represent an error number. Pass the cValue parameter by reference, and it will contain the requested value on return.
>
>Thanks Goerge, but I'm not sure what you mean,
>
>When you say pass it do you mean in my getinientry() line, or modify the ffc to return cValue?
>
>Here's my line:
>?oIni.getinientry(**,'Application','LastUpdate','I:\arss\ims5\ims.ini')
>
>Now where the astricks are. I've left it blank, a put in strings, and variables. Thanks for your help,

Hi Mike,

Nope, try the following:
lcbuffer = SPACE(200)
lnresult = oIni.GetIniEntry(@lcbuffer, 'Application', 'LastUpdate', 'I:\arss\ims5\ims.ini')
IF lnresult = 0
  ? lcbuffer
ELSE
  ? lnresult
ENDIF
Note the @ sign directly in front of the lcbuffer variable in the call. That causes the variable to be passed by reference. Otherwise it is passed by value, and can't be modified.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform