` Printed Icetips Article

Icetips Article



Par2: Name attribute usage
1998-05-16 -- Steve Parker
 
>Using CW4 and ABC does anyone know how to set up variable file names. It
>would be so great if you could put  !pathname & 'filename.tps' in the Full
>pathname of the dictionary but this does not work.


Declare !PathName in your DCT as the Name(). Declare PathName
globally in your app (or your data DLL or, in EE, in the DCT) and,
here's the trick, give it an initial value.

Usually this will be the DOS name of the file. Then, pick up
the DOS path from, say, your INI or control file and:
PathName = Clip(INI or control variable) & PathName



Printed November 21, 2024, 12:12 pm
This article has been viewed/printed 35189 times.