Save any database in a text delimiter file
Due to the petition of an user that he requested me something like that for Paradox tables:
Although..., thanks to a DataSource... it is good for any dataset to which is associate.
The function generates a text file, in which records all the registers of the database associated to the DataSource, generating one line for each register, and separating the fields con a given delimitador.
NOTE: The function, it jumps the binary fields (memo, images, blobs, etc).
Things to keep in mind: if in a text field, you have some character the same as the delimiter that you have chosen... you will have problems.
For example, if your you use a comma ', ' of delimitador, and in some text field you have some registration that have some comma in the text... because the result will be not well delimited.
Although I suppose that it won't be you problem to use another delimiter... or to use a delimiter of several characters, changing the parameter char of the function for string.