Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stumped
Message
From
26/11/2002 11:47:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Stumped
Miscellaneous
Thread ID:
00727081
Message ID:
00727081
Views:
36
Hi,
I am writing data to a file in fox 2.6 for dos using fputs.
I loop through finding records I am interested in and then issue the following command.

=fputs(_fp1,'16,01,MH ,'+ ;
SUBSTR(g_payno,5,7)+',SS,'+;
g_prevreg+' ,'+;
g_lastday+','+;
padl(ltrim(str(g_dutytot1,4)),4,'0')+','+;
padl(ltrim(str(g_taxtot1,4)),4,'0')+','+;
'000000,'+;
padl(ltrim(strtran(str(g_exptot1,6,2),'.')),6,'0')+','+ padl(ltrim(str(g_passtot1,4)),4,'0')+SPACE(20))

The first line that is output to the file is always missing the 16,01,MH string. all of the rest are fine.
This is the only place in my program where I write any of this to the file. I can't work out why the first time the command executes it misses out the first string.
Next
Reply
Map
View

Click here to load this message in the networking platform