Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reads & Writes to Win95 Registry
Message
De
29/01/1999 16:59:55
 
 
À
29/01/1999 16:22:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00182021
Message ID:
00182052
Vues:
12
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform