TPS files spread over several folders: setting the file name from path variables in the dictionary

Applies to: TPS files in the Clarion dictionary; no Clarion version named in the thread.

Problem

About 30 TPS files sat in one folder and had to be distributed into folders by usage type and backup strategy. The physical names differ from the dictionary names (the Employee table is EMPL01.TPS). The poster planned five global path variables, GLO:PathName01 to GLO:PathName05, and tried to set a table's name to the variable plus the file name. That syntax did not work.

Solution

  1. The first answer: the name was missing a backslash. Build it as GLO:PathName05 & '\Empl01.TPS'.
  2. Two posters then described the setup they use: declare a global variable in the dictionary, assign the folder to it at application start depending on whatever condition applies, and add \filename to it. One of them keeps a second dictionary variable for the owner, to use if needed.
  3. The poster chose that route. It worked on the few tables he tested; he still had to map the rest and change the backup tools.

Caveats

  • The poster's alternative, assigning Employee{Prop:name} in a procedure called at init of each application frame, was not tried in the thread.
  • He noted the variables are global in the dictionary and did not expect thread problems; nobody commented on that.

Today (2026)

Likely unchanged: the name is an ordinary string, so the folder part and the separator have to be in it. Not re-tested.

Sources: David L. (Apr 2008, the question), Tuz M. (Apr 2008), Jean-Pierre G. (Apr 2008) in softvelocity.clarion.databasedrivers.