Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reads & Writes to Win95 Registry
Message
From
29/01/1999 16:59:55
 
 
To
29/01/1999 16:22:32
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00182021
Message ID:
00182052
Views:
13
>>>My associate here uses Powerbuilder and he was able to get it to work in PB, so I am trying to follow his code so I can use VFP.
>>>Can anyone point me in the right direction?
>>>
>>>Thanks in advance.
>>>
>>>Scott
>>
>>
>>This isn't PowerBuilder, just use APRINTERS()
>>
>>BOb
> and if your associate is still not happy, show him/her =SYS(1037)

And if he still isn't happy, using the VFP registry class, you'd use syntax something like:
DIMENSION aPrinterDefs[1]
aPrinterDefs = NULL
nPrinters = 0
IF oReg.OpenRegKey(cTheRegistryKeyToOpen)
   IF oReg.EnumKeys(aPrinterDefs)
      nPrinters = ALEN(aPrinterDefs)
   ENDIF
ENDIF
since you're collecting subkeys of the HKCC...\Print\Printers key, and not values.
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
Reply
Map
View

Click here to load this message in the networking platform