Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy to
Message
From
10/05/2006 08:46:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Copy to
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01120672
Message ID:
01120672
Views:
95
hi all,

i try this code below , first it works get as example 24kb
SET DEFAULT TO ([w:\Quality Test 01\Source Data\]getfile.xls)
COPY FILE (thisform.text9.Value ) TO [w:\Quality Test 01\mtest\]+(JUSTFNAME(thisform.text9.Value )+ [.xls])
i try via this code i get just 1kb mean empty excel sheet.
lcFile22=JUSTFNAME(thisform.text9.Value)
? lcFile22
    if adir(dummy,lcFile22)>0
       MESSAGEBOX(" file exists")
   else
        COPY  TO [w:\Quality Test 01\mtest\]+(JUSTFNAME(thisform.text9.Value ))
   ENDIF
thanks
Next
Reply
Map
View

Click here to load this message in the networking platform