>>What's wrong with this code?
>>
>>CREATE CURSOR tickets(ticket i(4))
>>SELECT tickets
>>FOR m.i=1 TO 500
>> APPEND BLANK
>> replace ticket WITH m.i
>>ENDFOR
>>SELECT tickets
>>GO top
>>LABEL FORM ticketlbl PREVIEW
>>
>>The label has an image on it, and one field, Ticket. When the line, label form ticketlbl preview, executes, it errors with variable ticket not found???
>>
>>The table tickets in a browse, has 500 records with a field ticket which has values from 1 to 500.
>>
>>TIA,
>>Mike
>
>Are you running this label from a form with a grid? If so, move the focus out of the grid before printing.
No, I have created a test program and am running it from inside there... ie the code you see is all there is.
Mike