lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
form
formset
toolbar
LCBASECLASS
LRELEASE
BASECLASS
OHOST
RELEASEOBJREFSw
TCNAME
TVCLASS
TVCLASSLIBRARY
LVRESULT
VRESULT
CSETOBJREFPROGRAM
TOOBJECT
this.
oObject=this.&lcName
oObjectb
Release
oHost
this.&lcName=.NULL.
LCNAME
OOBJECT
LNCOUNT
NOBJECTREFCOUNT
AOBJECTREFS
RELEASE
OHOSTZ
LNOBJECTREFCOUNT
AOBJECTREFS
VNEWVAL.
thisformb
OHOST
THISFORM
DATASESSIONv
tnDataSessionIDb
TNDATASESSIONID
ONEWOBJECT
LNLASTDATASESSIONID
CLASS
CLASSLIBRARY
SetObjRf.prg
SETOBJRF
LAINSTANCES
CLASS
VNEWVAL
ERROR
ERROR()
nError
PROGRAM()
cMethod
LINENO()
nLine
&lcOnError
Error:
Method:
Line:
NERROR
CMETHOD
NLINE
LCONERROR
LCERRORMSG
LCCODELINEMSG
LIGNOREERRORS
CAPTIONL
LSETHOST
SETHOST
LAUTOSETOBJECTREFS
SETOBJECTREFSD
LRELEASE
RELEASEOBJREFS
OHOST
release,
setobjectref
setobjectrefs
releaseobjrefs
nobjectrefcount_access
nobjectrefcount_assigni
sethost
newinstance
addtoproject
ninstances_access
ninstances_assign/
ErrorP
Destroy+
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
form
formset
toolbar
LCBASECLASS
LRELEASE
BASECLASS
OHOST
RELEASEOBJREFSw
TCNAME
TVCLASS
TVCLASSLIBRARY
LVRESULT
VRESULT
CSETOBJREFPROGRAM
TOOBJECT
this.
oObject=this.&lcName
oObjectb
Release
oHost
this.&lcName=.NULL.
LCNAME
OOBJECT
LNCOUNT
NOBJECTREFCOUNT
AOBJECTREFS
RELEASE
OHOSTZ
LNOBJECTREFCOUNT
AOBJECTREFS
VNEWVAL.
thisformb
OHOST
THISFORM
DATASESSIONv
tnDataSessionIDb
TNDATASESSIONID
ONEWOBJECT
LNLASTDATASESSIONID
CLASS
CLASSLIBRARY
SetObjRf.prg
SETOBJRF
LAINSTANCES
CLASS
VNEWVAL
ERROR
ERROR()
nError
PROGRAM()
cMethod
LINENO()
nLine
&lcOnError
Error:
Method:
Line:
NERROR
CMETHOD
NLINE
LCONERROR
LCERRORMSG
LCCODELINEMSG
LIGNOREERRORS
CAPTIONL
LSETHOST
SETHOST
LAUTOSETOBJECTREFS
SETOBJECTREFSD
LRELEASE
RELEASEOBJREFS
OHOST
release,
setobjectref
setobjectrefs
releaseobjrefs
nobjectrefcount_access
nobjectrefcount_assigni
sethost
newinstance
addtoproject
ninstances_access
ninstances_assign/
ErrorP
Destroy+
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])
IF this.lAutoSetObjectRefs AND NOT this.SetObjectRefs(this)
RETURN .F.
ENDIF
ENDPROC
PROCEDURE Destroy
IF this.lRelease
RETURN .F.
ENDIF
this.lRelease=.T.
this.ReleaseObjRefs
this.oHost=.NULL.
ENDPROC
cversion Version property.
builder Bulder property.
builderx BuilderX property.
lautobuilder Specifies if custom FFC builder is automatically launched when instance is added to a container in design mode, even if the control pallette Builder Lock button is off.
nobjectrefcount Returns the number of items in the object reference array property aObjectRefs.
ohost Object reference to host object (generally THISFORM), which is automatically set on Init if lSetHost is .T.
lautosetobjectrefs Specifiies if the SetObjectRefs method is automatically called from the Init method.
vresult Variant result property for internal usage when calling programs in PRGs and a return file is required.
lrelease Indicates the object's Release method has been executed and the object is in the process of being released from memory.
csetobjrefprogram Program to be called when when setting an object references via the SetObjectRef method.
lignoreerrors Specifies if the default FFC error handler is executed when an error occurs.
lsethost Specifies if the SetHost method is automatically called from the Init method to set the oHost property to THISFORM.
ninstances
*release Releases object from memory.
*setobjectref Set object reference to specific property.
*setobjectrefs Place holder method for listing SetObjectRef method calls.
*releaseobjrefs Releases all object references of aObjectRefs array.
*nobjectrefcount_access Access method for nObjectRefCount property.
*nobjectrefcount_assign Assign method for nObjectRefCount property.
^aobjectrefs[1,3] Array of object references properties.
*sethost Set oHost property to form reference object.
*newinstance Returns new instance of object.
*addtoproject Dummy code for adding files to project.
*ninstances_access
*ninstances_assign
IPROCEDURE release
LOCAL lcBaseClass
IF this.lRelease
NODEFAULT
RETURN .F.
ENDIF
this.lRelease=.T.
lcBaseClass=LOWER(this.BaseClass)
this.oHost=.NULL.
this.ReleaseObjRefs
IF NOT INLIST(lcBaseClass+" ","form ","formset ","toolbar ")
RELEASE this
ENDIF
ENDPROC
PROCEDURE setobjectref
LPARAMETERS tcName,tvClass,tvClassLibrary
LOCAL lvResult
this.vResult=.T.
DO (this.cSetObjRefProgram) WITH (this),(tcName),(tvClass),(tvClassLibrary)
lvResult=this.vResult
this.vResult=.T.
RETURN lvResult
ENDPROC
PROCEDURE setobjectrefs
LPARAMETERS toObject
RETURN
ENDPROC
PROCEDURE releaseobjrefs
LOCAL lcName,oObject,lnCount
IF this.nObjectRefCount=0
RETURN
ENDIF
FOR lnCount = this.nObjectRefCount TO 1 STEP -1
lcName=this.aObjectRefs[lnCount,1]
IF EMPTY(lcName) OR NOT PEMSTATUS(this,lcName,5) OR TYPE("this."+lcName)#"O"
LOOP
ENDIF
oObject=this.&lcName
IF ISNULL(oObject)
LOOP
ENDIF
IF TYPE("oObject")=="O" AND NOT ISNULL(oObject) AND PEMSTATUS(oObject,"Release",5)
oObject.Release
ENDIF
IF NOT ISNULL(oObject) AND PEMSTATUS(oObject,"oHost",5)
oObject.oHost=.NULL.
ENDIF
this.&lcName=.NULL.
oObject=.NULL.
ENDFOR
DIMENSION this.aObjectRefs[1,3]
this.aObjectRefs=""
ENDPROC
PROCEDURE nobjectrefcount_access
LOCAL lnObjectRefCount
lnObjectRefCount=ALEN(this.aObjectRefs,1)
IF lnObjectRefCount=1 AND EMPTY(this.aObjectRefs[1])