On Jan 12, 2007, at 1:33 PM, Mike Vogt wrote:

[CE_PR_Transactions]Notes:= $attributes{"f_CEAuthNotes_"+string($recNum)}
and the last } is red.  I tried changing the
"f_CEAuthNotes_"+string($recNum) to
"f_CEAuthNotes_06"
And the error disappeared, leaving the conclusion that the
+string($recNum)is somehow causing the error. Right above this code is:
$recNum:=Num($keys{$i})
So I can't see how getting the string of the $recnum can somehow not return
a string!
Right above the line that throws the error is:
[CE_PR_Transactions ]Adjustment:=Num($attributes{"f_Adjustment_"+string($recN
um)})


first you're doing this:
$recNum:=Num($keys{$i})

and then :
[CE_PR_Transactions]Notes:=$attributes{"f_CEAuthNotes_"+string($recNum)}

why change to  a number only to change it right back again to a string?

why not :
[CE_PR_Transactions]Notes:=$attributes{"f_CEAuthNotes_"+$keys{$i}}

also (here's where I *think* is the problem)
if $keys{$i} = "06" the Num($keys{$i}) = 6

thus $recNum = 6 not "06"

[CE_PR_Transactions]Notes:= $attributes{"f_CEAuthNotes_"+string($recNum)}
would be the equivalent to
        [CE_PR_Transactions]Notes:=$attributes{"f_CEAuthNotes_6"}
which is not equal to
        [CE_PR_Transactions]Notes:=$attributes{"f_CEAuthNotes_06"}

you need to format the string such as 'string($recNum;"00")' (assuming only two digits)

HTH

--
Bart Alcorn
National Service Center
800-500-6421 x 2360
AIM/iChat: balcornnsc


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to