Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OPEN or SAVE AS multiple copies of the same TPS file structure.

Status
Not open for further replies.

TinLegs

Programmer
Jan 14, 2003
100
NZ
Greetings fellow Clarion users, using Clarion 5b ABC I am looking for a simple method of being able to SAVE multiple copies and later OPEN by selection the Same TPS file as defined in the DCT (for example multiple files created by doing a monthly close off)It appears this is done by defining a variable in the Full Path in the DCT and I guess using FILEDIALOG and redefining the file name when called but I can not find an example in the manuals so any ideas or an example of a standard method would be greatly appreciated.
 
The easier trick:

1. Define your Dictionary full path a Global Variable for every File.
2. SomeHow, before open any File, Change the Global Value's to the Path of you files.
3. Remember that the file must be Closed before change the path.

I like to Use a Multiple Tables on a Single File, So I made a Template that does this:
MyFileX{PROP:NAME}= GLO:path & '\!MyFileX'
MyFileY{PROP:NAME}= GLO:path & '\!MyFileY'
MyFileZ{PROP:NAME}= GLO:path & '\!MyFileZ'
And Put the Code Above in Global Embeds->GlobalObjects->FileManagers->FileManager for MyFileX->
On Init 7500
On Open 4500
On TryOpen 4500

FILES Must Exists!, so you must ensure the file existence or Create the File with the Create Statement!.

Bye -----
carabez@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top