Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stumped
Message
 
 
À
26/11/2002 11:47:10
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Titre:
Divers
Thread ID:
00727081
Message ID:
00727102
Vues:
14
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform