>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
Newobject() (both method and function) require that the 2nd parameter be the class library, and the extension for it is, by default, .prg - because it was, IIRC, made to accommodate the prg based classes. Try with adding .vcx to the name. .NewObject() may or may not care about set("classlib"), I'm not sure.