Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newobject prg vcx
Message
 
To
24/04/2006 05:22:27
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01115898
Message ID:
01115899
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform