Hello,
How can I access pages created dynamically at run time and set their
properties ?
For e.g
I have this loop that creates the name variable that I want to use to
access the pages
For i =1 to 5
lpageName="Page"+alltrim(str(i))
next
And when I try to set any propery as follows -
thisform.pageframe1.&lpagename.anyproperty - && it does not work.
For any property I want to access, I am doing the following
For i =1 to 5
lpage="Page"+alltrim(str(i))+".visible=.t."
next
And then
thisform.pageframe1.&lpage && this works.
I am sure there is a more elegant way to do this....
Shah