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

Click here to load this message in the networking platform