Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
\ problem
Message
De
10/12/2003 13:31:33
 
 
À
10/12/2003 00:17:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00857522
Message ID:
00857774
Vues:
23
>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
Fil
Voir

Click here to load this message in the networking platform