Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique Cursor
Message
 
 
À
13/10/2001 15:43:34
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00568185
Message ID:
00568189
Vues:
16
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform