.AddObject('lblID'+ALLTRIM(STR(thisform.branchcount)),'label')
theCmd = ".lblID" + ALLTRIM(STR(thisform.branchcount))
&theCmd.caption = curbranch.Branch_Num
&theCmd.width = 100
&theCmd.top = 60 + ((thisform.branchcount - 1) * 40)
&theCmd.left = 10
this is my code embedded in a loop to try and add multiple objects at runtime. Is this right or do I need to do it thus since I am referencing a property.
This raised the question. (from the Foxpro help)
which would sort of suggest this senario:
&theCmd..caption = curbranch.Branch_Num
&theCmd..width = 100
&theCmd..top = 60 + ((thisform.branchcount - 1) * 40)
&theCmd..left = 10
thanks for any help you migh offer
bcoats
theCmd = ".lblID" + ALLTRIM(STR(thisform.branchcount))
&theCmd.caption = curbranch.Branch_Num
&theCmd.width = 100
&theCmd.top = 60 + ((thisform.branchcount - 1) * 40)
&theCmd.left = 10
this is my code embedded in a loop to try and add multiple objects at runtime. Is this right or do I need to do it thus since I am referencing a property.
This raised the question. (from the Foxpro help)
Code:
The optional period (.) delimiter and .cExpression are used to append additional characters to a macro. cExpression appended to the macro with .cExpression can also be a macro. If cExpression is a property name, include an extra period (cExpression..PropertyName).
which would sort of suggest this senario:
&theCmd..caption = curbranch.Branch_Num
&theCmd..width = 100
&theCmd..top = 60 + ((thisform.branchcount - 1) * 40)
&theCmd..left = 10
thanks for any help you migh offer
bcoats