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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only