Step through each level. You may have to do your own based on something like:
CLOSE all
clear
MODIFY FORM c:\programns\frms\test1.scx NOWAIT
ASELOBJ(laform, 1)
loform = laform(1)
IF TYPE('loform.pageframe')<>"U"
FOR EACH lopage IN loform.PAGEFRAME.PAGES
FOR EACH ocontrol IN lopage.CONTROLS
IF ALLTRIM(UPPER(oControl.BaseClass)) = "LABEL"
IF 'test' $ LOWER(oControl.Caption)
myvalue = LOWER(oControl.Caption)
myValue = STRTRAN(myvalue,'test','Method ')
?myValue
oControl.Caption = myvalue
oControl.Left = oControl.Left - 5
ENDIF
ENDIF
ENDIF
ENDFOR
ENDFOR
ELSE
FOR EACH ocontrol IN loform.CONTROLS
IF ALLTRIM(UPPER(oControl.BaseClass)) = "LABEL"
IF 'test' $ LOWER(oControl.Caption)
myvalue = LOWER(oControl.Caption)
myValue = STRTRAN(myvalue,'test','Method ')
?myValue
oControl.Caption = myvalue
oControl.Left = oControl.Left - 5
ENDIF
ENDIF
ENDFOR
ENDIF
>thanks Tamar, but i need to access elements that are by example in second (2) page of pageframe contained on other pageframe.. do you know?
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"