Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to save VARIANT datatype from Fingerprint scanner
Message
From
27/12/2007 09:00:50
 
 
To
27/12/2007 01:12:08
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01276941
Message ID:
01277732
Views:
22
No indication or possibly some other property you have to set that says what the size of the return value buffer is? That's a pretty common way that's used to pass a buffer. Is anything being returned in AERROR()? What are you getting back for lnResult?


>Fred,
>
>I even tried initializing the variable lblobFingerPrint to SPACE(4096) - to no avail. The ptemplate object does not have a property that shows how big the "fingerprint data" is.
>
>Thanks.
>
>Dennis
>
>
>
>>>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
>>>
>>
>>lblobFingerPrnt must be initialized large enough to hold all the data that could be returned. Try setting it's value to SPACE(2000) or something like that, depending on how big the data returned might be.
>>
>>>
>>>
>>>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
>>>
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform