Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique Cursor
Message
 
 
To
13/10/2001 15:43:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00568185
Message ID:
00568189
Views:
15
>fdr = Upper(ChrTran(sys(0),'#',""))
>fdr = Upper(ChrTran(fdr,' ',""))
>Create Cursor &fdr (battext C(100))
>Insert InTo &fdr(battext) Values('Request;')
>Insert InTo &fdr(battext) Values('PLOTTER=' + '"sample postscript plotter"' +';')
>Insert InTo &fdr(battext) Values('NEWPLOT=' + "'\\gv-engineering\drawing\wgen\prerel\852706 FA014.CDD'" +';')
>Insert InTo &fdr(battext) Values('COPIES= 1;')

I've no idea why it's happenning but you don't have to create unique cursor name in this case. A cursor name isn't shared between different instances of an application. The following code should work.
Create Cursor BatCursor  (battext C(100))
Insert InTo BatCursor (battext) Values('Request;')
Insert InTo BatCursor (battext) Values('PLOTTER=' + '"sample postscript plotter"' +';')
Insert InTo BatCursor (battext) Values('NEWPLOT=' + ;
  "'\\gv-engineering\drawing\wgen\prerel\852706         FA014.CDD'" +';')
Insert InTo BatCursor (battext) Values('COPIES= 1;')
You can also consider using STRTOFILE() function to create your batch file.
BTW, what version of VFP are you working with?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform