Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save VARIANT datatype from Fingerprint scanner
Message
De
02/01/2008 11:43:02
 
 
À
02/01/2008 06:56:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01276941
Message ID:
01278993
Vues:
25
Borislav,

How about to make this array PUBLIC not LOCAL?

We may have stumbled into something... I did make the array PUBLIC, and it seemed to pick up some weird string like this:

5080B0E0104070A0D000306090C0F020

Now, this is what I have observed. In the weird string above, I set the array size to 16, and the resulting return value is 16 array elements of 16 bytes each. If set the array size to say 256, the resulting returned value is 256 array elements of 256 bytes each!

Question is, how do we make of this?

Below is the 'latest' code I used:
*** ActiveX Control Event ***
LPARAMETERS ptemplate

PUBLIC lblobFingerPrint, laFinger[1]
LOCAL lnResult

SET ASSERTS ON
WAIT WINDOW NOWAIT "Creating Employee Record..." NOCLEAR

DIMENSION laFinger[256] AS Byte

laFinger = CREATEBINARY( CHR(0) )     && ( "" )

COMARRAY( ptemplate, 11 )

lnResult = ptemplate.Export( @laFinger )

IF lnResult # Er_OK
   MESSAGEBOX( "Error in getting Registration Template" )
   RETURN
ENDIF

lblobFingerPrint = 0h
FOR i = 1 TO ALEN( laFinger, 1 )
    lblobFingerPrint = lblobFingerPrint + laFinger[i]
ENDFOR

APPEND BLANK IN employee
replace lastname   WITH thisform.txtLastname.Value,;
        firstname  WITH thisform.txtFirstname.Value,;
        fingerprnt WITH lblobFingerPrint IN employee
This, I hope, seems to be a good development!

Thanks!

Dennis
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform