Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting field names into a Comma Delimited File.
Message
 
À
21/12/1997 14:42:21
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00067402
Message ID:
00067493
Vues:
29
Cetin,

Thanks for the function code. I'll incorporate it and check it out. Thanks.

Elgin.

>Hi,
>Mail merge wizard would do this. But if you want an exe for any dbf you can do it in many ways, here is one :
>
>function exportascii
>parameters cTableName, cFieldList && Comma delimited field list - if you want filtering you could add another parm.
>if !used(cTableName)
> use (cTableName) in 0
>endif
>select (cTableName)
>copy to TempTxt fields &cFieldList type delimited
>handle=fcreate(cTableName+".txt")
>handle1=fopen("TempTxt.txt")
>=fputs(handle1, CfieldList) && If headers need quotes handle it too
>do while !feof(handle1)
> =fputs(handle,fgets(handle1,65535),65535)
>enddo
>=fclose(handle)
>=fclose(handle1)
>erase TempTxt.txt
>
>Cetin
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform