Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directing text to a .txt file
Message
From
30/03/2011 10:39:29
Joseph Smith
The Ohio State University
Columbus, Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Directing text to a .txt file
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01505516
Message ID:
01505516
Views:
127
Attempting to create and maintain a log file (.txt) and am using the following commands with code:

SET ALTERNATE ON
SET ALTERNATE TO
SET ALTERNATE TO '&app_dir'+'auto_launch_'+CHRTRAN(DTOC(DATE()),'/','')+'.txt' ADDITIVE

then

tasks(lp_cntr,10) = DATE()
log_file_entry = SPACE(200)
log_file_entry = TIME()+' '+DTOC(DATE())+' '+process_to_run
? '&log_file_entry'

The desired text is displayed on the Foxpro window and not written to file.

Any ideas are welcome and appreciated!!

Joe
Next
Reply
Map
View

Click here to load this message in the networking platform