Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newobject prg vcx
Message
 
À
24/04/2006 05:22:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01115898
Message ID:
01115899
Vues:
7
Hi Ron,
IMHO, it's bug.

The class from PRG would high priority the class in loaded VCX, because you specify prg file. Look on description of the function NewObject().

I know only one solution: rename this class in prg or VCX file.

MartinJ

>A small question:
>
>When i issue the following commands:
>
>*** opening/instantiating dataenvironment class 'dt_vrdsal1' in prgdt_vrdsal1.prg
>lodata1 = NEWOBJECT('dt_vrdsal1','c:\prgdt_vrdsal1.prg')
>lodata1.OpenTables()
>
>Meanwhile also my classlibrary vcx is open
>SET CLASSLIB TO c:\VOORRAAD1.VCX
>In this library i have also a dataenvironment class with the same name 'dt_vrdsal1'
>
>I was expecting the class 'dt_vrdsal1' in the class-program will become alive. But instead the class with the same name in the class-vcx is becoming alive.
>
>Is this normal behaviour?
>
>I have already a workaround, so thats not the issue. Renaming the class etc.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform