For Programmers: Free Programming Magazines  


Home > Archive > Clarion > May 2006 > Merging TPS files









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 Merging TPS files
WernerM

2006-05-08, 7:55 am

Hello,
I'm a newbie and need some help solving a problem that I could not find a
solution for (yet).
I was programming an audit software for audit teams that are auditing
several production sites.
After their input into an "audit finding" tps-file these information must
be imported to a "master file" to have all things together.
I found a similar topic in the newsgroup (from 2003, about "appending TPS
files), but the answer was too "generic" to help me as a beginner.
Also the "SOLODEX" example delivered with Clarion is quite confusing for
me.
Any "sample program" using the template chain would be highly
appreciated.
Thank you in advance!

SoftwareTailor@msn.com

2006-05-11, 6:55 pm

It is quite easy to merge 2 tps files, assuming they have the same
structure. Although there aren't any good examples (readily available).
What you need to do is create a "Convert" program. In the dictionary,
browse the table. When you do, there will be a File menu, Convert File.
Fill out the fields and generate the convert program. It actually
creates a Convert.prj and a related Convert.clw. Close the dictionary,
and open the Convert program project. Then edit the convert.clw source
code. You will notice it "converts" the file by copying it. Change the
code to not create the output file, but only open the output file,
which is your "merged" file. When the convert program runs, it will
copy the first file into the second file.
HTH.
Bob

WernerM

2006-05-15, 3:55 am

IT WORKS!

Thank you, Bob!

Werner

Sponsored Links







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

Copyright 2008 codecomments.com