shresthaal
Programmer
I have a form that has multiple container objects of the same type. Lets say the container objects name is conobj.
Currently the form has two conobj objects. conobj1 and conobj2.
Now i have a do while loop that cycles thru these objects to see which one i can use. The conobjs has a property that returns .t. or .f. .t. stating that the obj cannot be used and .f. stating it can. Now to achieve this I store
"thisform.conobjs" in an object say ctmp then i append a number which is a counter to state which obj it is for example if nctr in the do while loop = 1 then its conobjs1 and this is how i do it
ctmp = ctmp + alltrim(str(nctr)) + ".propertyname"
and then when i do &ctmp it works fine. After this i have to call a method of conobj1 from the form and i did the same thing
ctmp = "thisform.faxobj" and then ctmp = ctmp + alltrim(str(nctr)) + ".methodname("'"+ param1 + "," + param2)
but when i try to call it like &ctmp there is an error o
Currently the form has two conobj objects. conobj1 and conobj2.
Now i have a do while loop that cycles thru these objects to see which one i can use. The conobjs has a property that returns .t. or .f. .t. stating that the obj cannot be used and .f. stating it can. Now to achieve this I store
"thisform.conobjs" in an object say ctmp then i append a number which is a counter to state which obj it is for example if nctr in the do while loop = 1 then its conobjs1 and this is how i do it
ctmp = ctmp + alltrim(str(nctr)) + ".propertyname"
and then when i do &ctmp it works fine. After this i have to call a method of conobj1 from the form and i did the same thing
ctmp = "thisform.faxobj" and then ctmp = ctmp + alltrim(str(nctr)) + ".methodname("'"+ param1 + "," + param2)
but when i try to call it like &ctmp there is an error o