Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why doesn't this work?
Message
 
 
À
01/03/2005 11:50:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00991627
Message ID:
00991638
Vues:
23
This message has been marked as a message which has helped to the initial question of the thread.
lnHandle = fopen(...)
fwrite(lnHandle, 'Close Tables')

fclose(lnHandle)

>I used to do this in my sleep a century or two ago. Now that I am an old guy . . . . . ??
>
>
>Private CodeLine
>CodeLine = ""
>Fcreate("Begin.prg",0)
>Fopen("Begin.prg",2)
>CodeLine = "Close tables"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Set Safety Off"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Set Talk Off"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Set Deleted On"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Set Exclusive On"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Set Century On"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Set Sysmenu Automatic"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Set Confirm On"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Set Cpdialog Off"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Do DefineVariables"
>Fwrite("Begin.prg",CodeLine)
>CodeLine = "Do InitializeVariables"
>Fwrite("Begin.prg",CodeLine)
>Fclose("Begin.prg")
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform