Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use registry.vcx to get default profile???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to use registry.vcx to get default profile???
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009369
Message ID:
01009369
Views:
57
I've tried the following code:
? oReg.IsKey('',[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles])

? oReg.OpenKey([Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles],[HKEY_CURRENT_USER]) == 0
The first line returns a .T.
The second line returns a .F.

I then tried this:
? oReg.OpenKey('',[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles]) == 0
This time I get a .T.
However, I then want to get the value of the DefaultProfile from the Profiles folder. I try this:
lcValue = ''
? oReg.GetKeyValue('DefaultProfile',@lcValue) == 0
I get .F. (I've also tried lcValue = space(255)) Anyhow, I just can't seem to be able to get that value from the Registry.

Any ideas on how I can accomplish this?

Thanks in advance.

Rodd
Next
Reply
Map
View

Click here to load this message in the networking platform