>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement