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:36:51
 
 
À
04/09/2012 08:29:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01552295
Message ID:
01552297
Vues:
49
>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
Pieter Runia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform