Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to save VARIANT datatype from Fingerprint scanner
Message
From
22/12/2007 19:39:15
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01276941
Message ID:
01277197
Views:
24
Borislav,

I believe the problem lies in this particular line
lnResult = ptemplate.Export( @lblobFingerPrnt )
The variable lblobFingerPrnt just doesn't get the value returned!
In the documentation, the Export method returns a "BYTE ARRAY".. how do we do that in VFP?

Thanks

Dennis
LOCAL lblobFingerPrnt, lnResult

SET ASSERTS ON
WAIT WINDOW NOWAIT "Creating Employee Record..." NOCLEAR

lblobFingerPrnt = []
lnResult        = ptemplate.Export( @lblobFingerPrnt )

ASSERT NOT EMPTY(lblobFingerPrnt)
IF lnResult # Er_OK
   MESSAGEBOX( "Error in getting Registration Template" )
   RETURN
ENDIF

APPEND BLANK IN employee
replace lastname   WITH thisform.txtLastname.Value,;
        firstname  WITH thisform.txtFirstname.Value,;
        fingerprnt WITH lblobFingerPrnt IN employee

WAIT CLEAR
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform