Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
\ problem
Message
From
10/12/2003 13:31:33
 
 
To
10/12/2003 00:17:22
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00857522
Message ID:
00857774
Views:
22
>I face a problem when the progrom run in runtime :
>
>
>
>mServerPath = '\\server1\order\'
>mFile = 'graphics\picture1.bmp'
>mFullPath = mServerPath+mFile
>messagebox(mFullPath)
>
>in develop time, mFullPath = '\\server\order\graphics\picture1.bmp' which is correct.
>
>but when I compile to exe and run it, mFullPath will be
>
> '\\server\order\graphicspicture1.bmp'
>
>** '\' between mServerPath and mFile is missing
>
>Why?

I can't say why, but the best way to avoid the problem is to use the ForcePath() function:

mFullPath = FORCEPATH(mFile, mServerPath)

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform