I have a following code which gives me a different drive name in Window XP Professional or XP Home Edition. It works fine with Window 2000 or Win - 98.
for e.g., Window 2000 - "F:\data\<filename>
Window XP - "\\fs1\sys\data\"
<< code start >>
Local cDocLocation, cDataDir
If empty(master.DataDir) && Field contains '\data\'
=MessageBox("Data Directory must set"
Else
cDataDir = alltrim(master.DataDir)
cDataDir = iif(rat(":", cDataDir) > 0, cDataDir, sys(5) ;
+ cDataDir)
Endif
<< code end >>
Any idea or anybody having same problem?
Thanks
for e.g., Window 2000 - "F:\data\<filename>
Window XP - "\\fs1\sys\data\"
<< code start >>
Local cDocLocation, cDataDir
If empty(master.DataDir) && Field contains '\data\'
=MessageBox("Data Directory must set"
Else
cDataDir = alltrim(master.DataDir)
cDataDir = iif(rat(":", cDataDir) > 0, cDataDir, sys(5) ;
+ cDataDir)
Endif
<< code end >>
Any idea or anybody having same problem?
Thanks