>>>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