Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about File() fundtion
Message
 
À
02/04/2004 19:51:48
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00891861
Message ID:
00891949
Vues:
33
Nancy,

That's all right. Thank you again for sharing your knowledge.

The routine that you have posted works great too. The only thing was that
when the file name plus path returned, it also returns the rest of the buffer. So I changed the last line from:
return STRTRAN( lcTmpName, CHR(0), '' )
to
return IIF(m.lnReturn#0,LEFT(m.lcTmpName,AT(CHR(0),m.lcTmpName,1)-1),[]) 
* when the function fails, the lnreturn is zero
Dawa
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform