Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getregkey()
Message
From
25/01/2000 10:21:39
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00322097
Message ID:
00322181
Views:
25
>>>>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
Map
View

Click here to load this message in the networking platform