You can either use NewObject function with the name of the library or make sure the library is in SET('classlib').
>Finally got the vagaries of m2Sys figured out, added the ChkBio.vcx to the project, added the code to the project, rebuilt the .exe and it's telling me that "Class definition BIOPLUG is not found"
>
>What the heck?
>
>Here's the code:
>
>
>wait window "Creating Obj BioPlug"
>oChkbio = CreateObj("BioPlug")
>oChkbio.ChkStatus()
>Rele oChkBio
>
>
>Thinking that perhaps it was getting confused from all the libraries we got out there, I tried
>
>wait window "Creating Obj BioPlug"
>oChkbio = CreateObj("BioPlug", "ChkBio")
>oChkbio.ChkStatus()
>Rele oChkBio
>
>
>Someone PLEASE tell me it's something stupid so I can do 'D'OH!' and move on to something more pleasant to work on?
If it's not broken, fix it until it is.
My Blog