Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1733
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
01668856
Message ID:
01668886
Views:
83
Here I go again against the grain... I think it is a mistake to use "set classlib"; and the whole purpose of newobject vs createobject is to handle this, in my opinion.
So, you either use newobject (method or function) without "set classlib" (my preferred way, in fact the only way I use it) or you use createobject (function) with "set classlib" (I only use createobject for activex, even when I know I could use newobject for it too), but there is no point in using newobject with "set classlib". I know from past discussions that there is some consensus here that I am wrong and "set classlib" is useful, but I am also stubborn :)

>Hi,
>
>I am facing error :
>"Classdefinition fs_frmmaintenance is not found"
>The code line causing this:
>This.Newobject("fs_Maintenance1","fs_frmMaintenance")
>The class is in the classlib which is set with set Classlib to and most curious is that a few lines above you will find:
>
>This.Newobject("fs_Actions1", "fs_Actions")
>which executes normaly
>Both fs_Actions and fs_frmMaintenance are in the same Classlib
>
>help file is not very helpfull in this respect, besides it states
>" The class definition specified in a CREATEOBJECT( ) function cannot be located. " which is wrong as this is a Newobject and not createobject
>
>I am puzzled.
>
>Any advise is welcome
>
>Koen
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform