Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting field names into a Comma Delimited File.
Message
 
To
21/12/1997 14:42:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00067402
Message ID:
00067493
Views:
25
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
Previous
Reply
Map
View

Click here to load this message in the networking platform