Bart,
The next line after $recNum:=Num($keys{$i}) is:
goto record([CE_PR_Transactions];$recNum)
I used this code for updating batches of records that have been checkboxes
check in a list of records.
-The 06 vs 6 is not the issue, I just used 06 for example.
What really seems to be happening is that A4D thinks that "f_CEAuthNotes_6"
is a string
but that "f_CEAuthNotes_"+string($recnum) is not.
Mike
> -----Original Message-----
> From: [EMAIL PROTECTED]
> Bart Alcorn
> Sent: Friday, January 12, 2007 2:04 PM
> Subject: Re: [Active4d-dev] A4d Error
>
>
> 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/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/