For Programmers: Free Programming Magazines  


Home > Archive > Clarion > January 2006 > Text file to TPS









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Text file to TPS
Boris

2006-01-10, 3:56 am

What is the easiest way to transfer data from txt file (values separated
with ; and end of line) to TPS file in dictionary?

Thanks,
Boris
pblais@odstrategies.org

2006-01-10, 3:56 am

Define a BASIC driver table in the DCT with the proper fields to read
the text file. You'll need a driver string to set the ; separator
character instead of the default comma. Either define the path as a
threaded global variable and then set it at run time of had code a
filename in the DDCT if you need it only one time.

Then create a TPS file based on these fields and finally generate a
process template to read the text file and in the TakeRecord embed add
code to assign and save the fields to a new TPS record.

On Mon, 09 Jan 2006 10:59:39 +0100, Boris <boris.savc@odis-info.si>
wrote:

>What is the easiest way to transfer data from txt file (values separated
>with ; and end of line) to TPS file in dictionary?

---------------------------------------
Paul Blais - Hayes, Virginia
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com