Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using FOPEN()
Message
From
18/03/2003 10:41:20
Todd Brown
Teachers Credit Union
Granger, Indiana, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Using FOPEN()
Miscellaneous
Thread ID:
00767050
Message ID:
00767050
Views:
54
I have tried to insert the following line into the code at the bottom and it does not work. When I use the actual drive letter it does work. Is there anyway the get it to work without using the actual drive letter. Frequently people are using the files I need, so I suspend the program until it becomes available. Now I do not want to have to actually map a drive to make it work. The FOPEN() command is the only command I have found that will tell me if the dbf is being used before I try to use it .

ImportCurrentFile = "\\dev\backporch\imp_tabs\"

This Works:

ImportCurrentFile = "i:\........\"

SELE 1
USE CurrentFile
Handle = -1
DO WHILE Handle < 0
Handle = FOPEN(ImportCurrentFile + ".dbf",12)
IF Handle > 0
=FCLOSE(Handle)
ZAP
APPEND FROM &ImportCurrentFile
ELSE
WAIT "Waiting for Current file to become available" WINDOW AT 30,1 TIMEOUT 5
ENDIF
=FCLOSE(Handle)
ENDDO

Thanks
Todd
Next
Reply
Map
View

Click here to load this message in the networking platform