Look at Message #
276489.
HTH
>A client wants this program today.
>This does not work in runtime.
>I want to change the path at runtime as the client data could be in any company subdirectory.
>The program cannot see the object.
>What is the magic syntax to use?
>
>* GenerateMagMedia.Init
>m_compdir = iif( substr(m_comp_dir,2,1)=':',;
> substr(m_comp_dir,3,999),m_comp_dir)
>IF version(2) = 0 && runtime
> ThisForm.datageneratemagmedia.cursorwdcomain.cursorsource =;
> m_compdir + 'wdcomain.dbf'