>>
>>Hey, That worked! Thanks
>
>No problem - I built an addition to the house while testing it. Don't forget that before you run the code above you'll need:
>SET ClassLib to PERMIT.VCX additive
>CreateObject('PERMIT', n)
>
>where "n" is, of course, the number of rooms you'll be adding :-))
>
Thanks but here in southeast Missouri we don't use them except in cities...
On another note:
I have a form class and when I run a form based on this form that is outside of an application I need to detect that and load the application class I guess so methods that are in the application class are available to the form. Would the syntax be something like the following?
init or load method of form
IF TYPE("oApp") = "U" && it ain't out there
SET CLASSLIB TO JetApp.vcx
oApp = CREATEOBJECT("JetApp")
This.cPrivateSession = .T.
ELSE
This.cPrivateSession = .F.
ENDIF
destroy method of form
IF This.cPrivateSession
RELEASE oApp
ENDIF
Thanks