>>>*** ActiveX Control Event *** >>>LPARAMETERS ptemplate >>> >>>LOCAL lbFingerPrnt, lnResult, laFingerPrint >>> >>>WAIT WINDOW NOWAIT "Creating Employee Record..." NOCLEAR >>> >>>COMARRAY( ptemplate, 10+1000 ) && I tried diff parameter combinations here >>> >>>laFingerPrint = "" && also used CREATEBINARY( " " )... to no avail either >>> >>>lnResult = ptemplate.Export( @laFingerPrint ) >>> >>>IF lnResult # Er_OK >>> MESSAGEBOX( "Error in getting Registration Template" ) >>> RETURN >>>ENDIF >>> >>>IF EMPTY( laFingerPrint ) >>> MESSAGEBOX( "Empty FINGERPRNT blob value!" ) >>> RETURN >>>ELSE >>> MESSAGEBOX( "Hurray! FINGERPRNT blob value detected!" ) >>>ENDIF >>> >>>APPEND BLANK IN employee >>>REPLACE employee.lastname WITH thisform.txtLastname.Value,; >>> employee.firstname WITH thisform.txtFirstname.Value,; >>> employee.fingerprnt WITH laFingerPrint >>> >>>WAIT CLEAR >>> >>>>>>
>>>>>*** ActiveX Control Event *** >>>>>LPARAMETERS ptemplate >>>>> >>>>>LOCAL lblobFingerPrnt, lnResult >>>>> >>>>>WAIT WINDOW NOWAIT "Creating Employee Record..." NOCLEAR >>> >>>>> >>>>>lnResult = ptemplate.Export( @lblobFingerPrnt ) >>>>> >>>>>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 lblobFingerPrnt >>>>> >>>>>WAIT CLEAR >>>>>>>>>>
>>>>>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. >>>>>>>>>>