Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stumped
Message
 
 
To
26/11/2002 11:47:10
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Miscellaneous
Thread ID:
00727081
Message ID:
00727102
Views:
11
Hi David,

The code you posted is not culprit here. Something else is responsible.

>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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform