>I use the following code to create a cursor in the load method of a form.
>
>CREATE CURSOR curError ;
> (trantype C(15),;
> errormsg C(50),;
> partno C(20),;
> resolution C(20))
>
>It works fine in the command window, but once I try to create the cursor in a form I get a syntax error. Am I missing something? Any suggestions will be greatly appreciated.
>
>
>Thanks
>
>James Naftel
>PICS
>naftel@negia.net
James, Could you have a function somewhere called "errormsg" which is conflicting with the CREATE CURSOR command? You might try removing the fields one at a time and see if a field name is causing problems. I'd suggest leaving PartNo for last, as it's been used in so many programs around the world that it probably has its own fan club.
HTH
Barbara