Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save VARIANT datatype from Fingerprint scanner
Message
De
27/12/2007 01:12:08
 
 
À
26/12/2007 09:59:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01276941
Message ID:
01277687
Vues:
27
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
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform