Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set classlib - and alias in use?
Message
De
15/10/2008 11:04:59
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
15/10/2008 08:09:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355033
Message ID:
01355142
Vues:
33
>>Hilmar,
>>Classlibs are tables and are aliased when opened. Aliases work as handles. It wouldn't cause alias in use error if the same alias is in use as a table alias.
>>
>>AFAIK the only way to get that error is by trying to open a class library with the "same name" but "from 2 different folders". ie:
>
>That is more or less what I suspected. But I didn't find two classlibs with the same name.
>
>This only happens when I run the EXE (in a separate folder); as far as I know, the original classlibs are not accessible; and the project only does not contain several classlibs with the same name.

In Visual MaxFrame there are two ways this is dealt with. One is to remove the pathing from the VCX/SCX files. Once things are compiled in the exe, the pathing is really dumb. Two there is a piece of code we run, x8setcls, which checks SET("CLASSLIB") to see if the class is already open and then does not reopen it.

I do get that error message if I

SET CLASSLIB TO rptuebase.vcx ALIAS Hilmar
SET CLASSLIB TO rptueadvances.vcx ALIAS Hilmar additive
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform