Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Play AVI question
Message
 
À
03/05/2001 17:45:19
Larry Rix
Larry Rix & Associates, Inc.
Westminster, Colorado, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00503179
Message ID:
00503425
Vues:
29
>... or try:
>
>SET LIBRARY TO ( HOME() + ".\FOXTOOLS.FLL" )
>
>or
>
>local lcTools
>lcTools = home() + ".\foxtools.fll"
>set library to (lcTools)
>
>The idea being, of course, to not assume that foxtools.fll is in the path, but to have specific knowledge of its location and express that in the string. Furthermore, if the quotes are presenting a problem then the parenthetical expression forces VFP to evaluate the contents of the expression prior to handing off the value to the SET LIBRARY TO instruction.

Larry,

People need to be careful about this. While it will resolve the problem at compile time, at runtime if the library isn't in the same location as the runtime library (usually the Windows System directory) the library won't be found. In order to avoid versioning problems, it's probably a better idea to place the library in the default directory for deployment purposes. The worst case scenario here is that you'd use SYS(5) + CURDIR() instead.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform