Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if a file exists
Message
 
To
04/05/2004 08:52:53
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00900659
Message ID:
00901111
Views:
17
Hi Mike,

Maybe you can check this code if suitable to you or not,

If lOnline
_Cust_file = "&_Net_Dir\data\services\"+_cust_item
_Cust_Itemdb = "&_Net_Dir\data\services\"+_Cust_Item+".Dbf"

If File(_Cust_Itemdb)
If !used(_cust_item)
Use &_Cust_file in 0 shared
Else
Select('&_Cust_item')
Endif
Else
Messagebox("Services File is Missing!"+CHR(13)+;
"The system will create for you..",0+48,"",1900)
Select('Serv_det')
Copy stru to "&_Net_Dir\Data\Services\"+"DP"+Allt(xcustid) with cdx
_Cust_file = "&_Net_Dir\data\services\"+_cust_item
_Cust_Itemdb = "&_Net_Dir\data\services\"+_Cust_Item+".Dbf"
If !used(_cust_item)
Use &_Cust_file in 0 shared
Else
Select('&_Cust_item')
Endif
Endif
Else
_Cust_file = "C:\Helpdesk\data\services\"+_cust_item
_Cust_Itemdb = "&_Work_Dir\data\services\"+_Cust_Item+".Dbf"
If file(_Cust_itemdb)
If !used(_cust_item)
Use &_Cust_file in 0 shared
Else
Select('&_Cust_item')
Endif
Else
Messagebox("Services File is Missing!"+CHR(13)+;
"The system will create for you..",0+48,"",1900)
Select('Serv_det')
Copy stru to "&_Work_Dir\Data\Services\"+"DP"+Allt(xcustid) with cdx
_Cust_file = "&_Work_Dir\data\services\"+_cust_item
_Cust_Itemdb = "&_Work_Dir\data\services\"+_Cust_Item+".Dbf"
If !used(_cust_item)
Use &_Cust_file in 0 shared
Else
Select('&_Cust_item')
Endif
Endif
ENDIF
Jojo R. dela Cuesta, B.Sc.
eConsultant, Programmer
Dalplus Technologies
http://www.dalplus.com
Previous
Reply
Map
View

Click here to load this message in the networking platform