Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getregkey()
Message
From
25/01/2000 10:16:35
 
 
To
25/01/2000 09:49:23
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00322097
Message ID:
00322179
Views:
27
>>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform