Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function argument value type or count is invalid
Message
De
04/09/2012 08:38:48
 
 
À
04/09/2012 08:36:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01552295
Message ID:
01552300
Vues:
41
Bah, thanks guys, early morning brain fart on my part.


>>I get this message at the lnDigit= line of the code:
>>
>>
proIn = 56548965
>>lnSum = 0
>>	FOR i = 1 TO 8
>>	  lnDigit = VAL(SUBSTR(m.proIn, m.i, 1)) * VAL(SUBSTR("12121212", m.i, 1))
>>	  IF lnDigit > 9
>>	   lnDigit = INT(lnDigit/10) + lnDigit - 10
>>	  ENDIF
>>	  lnSum = lnSum + lnDigit
>>	NEXT	
>>	chkdig = 10*(INT(lnSum/10)+1) - lnSum	
>>	chkdig = IIF(chkdig = 10, "0", TRANSFORM(chkdig))
>>??chkdig
>>
>>I'm not sure what I have to fix, it doesn't look like anything is out of range to me.
>
>m.proIn is not a string
>try with proIn = "56548965"
>
>Regards,
>Pieter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform