Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function argument value type or count is invalid
Message
From
04/09/2012 08:36:51
 
 
To
04/09/2012 08:29:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01552295
Message ID:
01552297
Views:
50
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform