Page numbers for marked cards for printing part 2

Ian McKnight iangmcknight at googlemail.com
Thu Feb 11 21:28:32 EST 2010


On 11 February 2010 20:07, charles61 <cszasz at mac.com> wrote:
>
> Mary,
>
> Correction - I do get an error when I use the following script:
>
> on preOpenCard
>
> mark card "eligibility"
> repeat with x = 1 to the number of marked cards
>  put "Page" && x into field "PageNumber" of marked card x
> end repeat
>
> end preOpenCard
>
> This script generates the following error message:
>
> card "Eligibility": execution error at line 5 (Chunk: no such object) near "PageNumber", char 23
>

Hi Charles

mark card "eligibility" is looking to mark a card *called* "eligibility"

Assuming that you have marked your cards for printing, ( e.g.  mark
card where fld "printme" = "Yes" )  try the preOpencard handler
without this line.

-- 
Regards


Ian McKnight

iangmcknight at googlemail.com
=======================



More information about the Use-livecode mailing list