>>>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.