>>>>oreg.GetRegKey("ResWidth",@cValue,;
>>>> "SOFTWARE\Microsoft\VisualFoxPro\4.0\Options",;
>>>> -2147483647)
>>>>
>>>
>>>Initialize the variable cValue to a character string before making the method call - the result will be returned as a chacter string for this particular registry key value. If you're using the FFC, it only works with strings.
>>
>>Excuse me Ed.
>>I dont know what do you mean with "Caracter string"
>>Can you give me an example.
>>Thanks.
>
>cValue = SPACE(30) && this is a VFP string 30 bytes long.
>
>Variables passed by reference (using the @ prefix) must exist before they can be passed in and out of the method or function call. After the method completes, the registry key value comes back in the variable you passed in by reference (in this case, cValue) for this example.
Excuse me.
Im an idiot.
Everything is right.
The only mistake is 4.0
I have vfp 6.0.
oreg.GetRegKey("ResWidth",@cValue,;
"SOFTWARE\Microsoft\VisualFoxPro\6.0\Options",;
-2147483647)
works perfect.
Thanks again.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only