Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PUTFILE() issue
Message
De
26/03/2009 16:44:51
 
 
À
26/03/2009 16:10:40
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01391720
Message ID:
01391755
Vues:
43
>>>>This is weird. I am using PUTFILE() as below, tname is about 30 characters but somehow I am only getting the last 6 characters as the name to save as. so instead of getting "data in tName column" I am getting "column".
>>>>Now, I am using the same code somewhere else and it is working as expected.
>>>>
>>>>Any idea??
>>>>
>>>>cFileName = PUTFILE('CSR:',ALLTRIM(table1.tname)+".csr",'csr')
>...
>>I tried with extension, without extension. created variable to hold the name, used LEFT() with LEN(). I mean anything I can think of and still not working on this one. then work perfect on another screen...
>
>Try with m.cFileName - you may be sitting on an alias where you have a cFileName field which is c(6). Or just rename the variable to lcFileName.

I just found out that I am omitting one important information. The column data ends with date (i.e. 02/05/2009) and PUTFILE() stopping at 2009. what's weird it start from the right side. when I deleted the date part, it worked fine.
test it.
I did not find any documentation about this behavior.

Any solution other than STRTRAN()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform