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.