I am tidying up some lengthy code but I can't fathom part of the syntax.
At the start of my code I assign a variable - VARB to a container.
I can set the properties of the container and any object within it.
I also need to set the value of a variable to the value of a field within the container.
The first line below is the working 'long hand' code but the second line errors - COL2W - is not an object.
How do I combine &VARB with the additional object reference?
Keith
At the start of my code I assign a variable - VARB to a container.
I can set the properties of the container and any object within it.
Code:
VARB="THISFORM.PAGEFRAME"+TRANSFORM(X)+".PAGE2.COL2"
WITH &VARB
.VISIBLE = .T.
.S.ENABLED = .T.
ENDWITH
I also need to set the value of a variable to the value of a field within the container.
The first line below is the working 'long hand' code but the second line errors - COL2W - is not an object.
How do I combine &VARB with the additional object reference?
Code:
* COL2WID = THISFORM.PAGEFRAME1.PAGE2.COL2.W.VALUE
COL2WID = &VARB.W.VALUE
Keith