Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is CLASSLIB in the APP/EXE ???
Message
De
29/04/1999 14:50:31
 
 
À
29/04/1999 14:34:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00213566
Message ID:
00213581
Vues:
32
OIC....

What about a small routine where you attempt to set classlib, trapping any error. If the error occurs, then look for the physical classlib?


>>If you install the EXE to a different directory, "hide" the original classlib files with ATTRIB +H and then run the EXE and launch forms or whatnot that instance objects from the classlib, I would think that you'd have empirical evidence that it was compiled into the EXE.
>>
>>>
>>>Is there a way to tell if a ClassLib file has been compiled into the APP or EXE...
>
>John... I personally know that it is in the .EXE if I put it in the project. That is not the issue... I want to know programatically if a LIB was included before I try to create an object from it...
>
>Basically, this is the logic...
>
>Is thislib in set('CLASSLIB')?
> Yes - Instntiate it
>
>No:
>Is thislib in the EXE ?
>
>Yes - instantiate the object
>
>No - Is thislib in a specified directory
> Yes - instatiate it
> No - Is thislib in the path
>
>*************
>BOb
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform