>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only