Where is the code for importing a pipe separated file into a table?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

HGAutomator
Posts: 197
Joined: Thu Jul 16, 2020 5:42 pm
DBs Used: DBF

Re: Where is the code for importing a pipe separated file into a table?

Post by HGAutomator »

Thanks edk,

Sorry I was mia for more than a week. Been working on a production problem at the office, which is actually related to this topic.

I'll try and extract a sample pipe file from the one we have, and post.
edk wrote: Sun Jun 18, 2023 1:25 pm
mustafa wrote: Sun Jun 18, 2023 10:05 am after
#include <hmg.ch>
Function Main
put this:

Code: Select all

SET CODEPAGE TO UNICODE
SET CENTURY ON
SET DATE FRENCH
SET DATE FORMAT TO 'dd/mm/yyyy'
See if it works?
Pay attention to the indicated date '06/15/2023'. It is in the American format 'mm/dd/yyyy' and not French (there is no month 15 in the calendar :mrgreen: )

@HGAutomator. Can U upload sample CSV file with a pipe delimiter :?:
Post Reply