Hello,
I have a collection class called DataColl and my program creates this collection object and passes it back to another form...I also want to pass more information about the state of the current form to the second form, so I decided it would be best to use a wrapper class...this is my code for the wrapper class...
Define Class Wrapper as Custom
nCount = 10
Define Class DataColl as Collection
Function addSample (lcClientNum)
local loSample
loSample = Createobject("Data"
With loSample
.setClientNum(lcClientNum)
.setReferenceNum(lcReferenceNum)
.setFName(lcFName)
.setLName(lcLName)
.setSSN(lcSSN)
Endwith
this.Add(loSample)
Endfunc
EndDefine
EndDefine
loSample is the object which I add to the collection...the problem I am now having is that Foxpro says this.Add(loSample) is not a property of this. I used the debugger to find out that "this" is now referring to the outer "Wrapper" class and not the inner class...I cannot seem to find a way to access the methods for the collection class unless I remove the wrapper class...does anyone have any suggestions?
Thanks,
Aseem
I have a collection class called DataColl and my program creates this collection object and passes it back to another form...I also want to pass more information about the state of the current form to the second form, so I decided it would be best to use a wrapper class...this is my code for the wrapper class...
Define Class Wrapper as Custom
nCount = 10
Define Class DataColl as Collection
Function addSample (lcClientNum)
local loSample
loSample = Createobject("Data"
With loSample
.setClientNum(lcClientNum)
.setReferenceNum(lcReferenceNum)
.setFName(lcFName)
.setLName(lcLName)
.setSSN(lcSSN)
Endwith
this.Add(loSample)
Endfunc
EndDefine
EndDefine
loSample is the object which I add to the collection...the problem I am now having is that Foxpro says this.Add(loSample) is not a property of this. I used the debugger to find out that "this" is now referring to the outer "Wrapper" class and not the inner class...I cannot seem to find a way to access the methods for the collection class unless I remove the wrapper class...does anyone have any suggestions?
Thanks,
Aseem