Hi Everybody,
I am tinkering with a fingerprint scanner ActiveX control (Digital Persona).
Instantiating, dropping and working with it seems to go on smoothly... till the last event called Done() event, where it is supposed to return a "Fingerprint Template - FPTemplate" object variable.
This is the code I created in the ActiveX control's Done() event:
*** ActiveX Control Event ***
LPARAMETERS ptemplate
LOCAL lblobFingerPrint, lnResult
WAIT WINDOW NOWAIT "Creating Employee Record..." NOCLEAR
lblobFingerPrint
lnResult = ptemplate.Export( @lblobFingerPrint )
IF lnResult # Er_OK
MESSAGEBOX( "Error in getting Registration Template" )
RETURN
ENDIF
APPEND BLANK IN employee
replace employee.lastname WITH thisform.txtLastname.Value,;
employee.firstname WITH thisform.txtFirstname.Value,;
employee.fingerprnt WITH lblobFingerPrint
WAIT CLEAR
I get "Data type mismatch" using the above. Going thru the Debugger, the value of variable lblobFingerPrnt is always .F. and is never updated even when invoking the Export method.
This 'ptemplate' object variable, as per its documentation, has an Export method, like so:
Export([out] VARIANT* pVal, [out,retval] AIErrors *pErr)
* Exports the template object as a signed blob of bytes.
* This may then be saved by the developer in the database of his choice.
HELP! Obviously it has something to do with a VARIANT data type. Furthermore, the employee.fingerprint field is of Blob type. Doc also mentioned that it is a "byte array".
Thanks in advance!
Happy Holidays! Cheers!
Dennis
I am tinkering with a fingerprint scanner ActiveX control (Digital Persona).
Instantiating, dropping and working with it seems to go on smoothly... till the last event called Done() event, where it is supposed to return a "Fingerprint Template - FPTemplate" object variable.
This is the code I created in the ActiveX control's Done() event:
*** ActiveX Control Event ***
LPARAMETERS ptemplate
LOCAL lblobFingerPrint, lnResult
WAIT WINDOW NOWAIT "Creating Employee Record..." NOCLEAR
lblobFingerPrint
lnResult = ptemplate.Export( @lblobFingerPrint )
IF lnResult # Er_OK
MESSAGEBOX( "Error in getting Registration Template" )
RETURN
ENDIF
APPEND BLANK IN employee
replace employee.lastname WITH thisform.txtLastname.Value,;
employee.firstname WITH thisform.txtFirstname.Value,;
employee.fingerprnt WITH lblobFingerPrint
WAIT CLEAR
I get "Data type mismatch" using the above. Going thru the Debugger, the value of variable lblobFingerPrnt is always .F. and is never updated even when invoking the Export method.
This 'ptemplate' object variable, as per its documentation, has an Export method, like so:
Export([out] VARIANT* pVal, [out,retval] AIErrors *pErr)
* Exports the template object as a signed blob of bytes.
* This may then be saved by the developer in the database of his choice.
HELP! Obviously it has something to do with a VARIANT data type. Furthermore, the employee.fingerprint field is of Blob type. Doc also mentioned that it is a "byte array".
Thanks in advance!
Happy Holidays! Cheers!
Dennis