Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Classlib
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00065671
Message ID:
00065690
Vues:
37
I agree with the others: it looks like a bad naming to use numbers for class libraries. But if this is more meaningful for you or your app, you can use the ALIAS clause of the SET CLASSLIB command. This way you can avoid the problem you have and keep the file names.

SET CLASSLIB TO 1500 ADDITIVE ALIAS C1500
SET CLASSLIB TO 2360 ADDITIVE ALIAS 2360

Please notice I've used ADDITIVE for both commands. This has no importance for your problem, but it's a good habit. You'll never have problems when overwriting the CLASSLIB setting by mistake. You can have a SET CLASSLIB TO at the very beginning of your program to be sure you start "clean".

Vlad

>We have 2 class libraries, one named 1500, one named 2360.
>
>When we issue
>SET CLASSLIB TO 1500
>
>Everything is Ok,
>
>But later when we want to
>SET CLASSLIB TO 2360 ADDITIVE
>
>We get an error about the ALIAS is already used?
>.
>.
>.
>
>After a little research, loading 1500 from the command window, SET('CLASSLIB') returns
>
>...\CLASSLIB\1500.VCX
>
>However, if you add a class library with a character name, it returns something like...
>
>SET CLASSLIB TO WAYNE
>? SET('CLASSLIB)
>...\CLASSLIB\WAYNE.VCX ALIAS WAYNE
>
>From what it looks like, you can't simultaneously load two libraries with numeric names??
>
>Anyone ever seen this?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform