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