Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Files included with executables...
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00654752
Message ID:
00655050
Views:
23
Just a by the way, I had this exact problem and the file() function looks in the project and finds the file. That's why you had to adir it.

Mark.

>Thanks, works like a charm now ;)
>
>>Try to use ADIR() instead. The FILE() function has it quirks.
>>
>>>Neat trick, however this code dosent work? The file() function is always returning .t. because it thinks the file is there because its in the executable, even with I use home() it returns true.
>>>
>>>
>>>lcWaitFile = "wait1.avi"
>>>
>>>if !file(home() + lcWaitFile))
>>>	strtofile(filetostr(lcWaitFile), lcWaitFile)
>>>endif
>>>
>>>
>>>>
>>>>The activex you're using requires file on disk because it cannot see files included in exe. You've to either distribute AVI as a separate file or copy it out at your app start.
Strtofile(Filetostr("wait.avi"), "wait.avi"))
You can check if file already exists and skip copying in this case.
Mark S. Swiencki
EPS Software www.eps-software.com
mark@eps-software.com
Previous
Reply
Map
View

Click here to load this message in the networking platform