On Aug 2, 6:58?pm, Gene Wirchenko <ge...@[EMAIL PROTECTED]
> wrote:
> shah <shahja...@[EMAIL PROTECTED]
> wrote:
>
> [snip]
>
> >And when I try to set any propery as follows -
>
> >thisform.pageframe1.&lpagename.anyproperty - && it does not work.
>
> ^
> This period terminates the &. You need a second one to separate
> the names. Assuming that you are trying to access a propery of page1,
> thisform.pageframe1.&lpagename.anyproperty
> resolves to
> thisform.pageframe1.Page1anyproperty
> whereas
> thisform.pageframe1.&lpagename..anyproperty
> resolves to
> thisform.pageframe1.Page1.anyproperty
>
> >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.
>
> It is not obvious that this is an assignment. Do not do it.
> Think of the poor maintenance programmer, who might even be you.
>
> >I am sure there is a more elegant way to do this....
>
> Just add another period.
>
> Sincerely,
>
> Gene Wirchenko
>
> Computerese Irregular Verb Conjugation:
> I have preferences.
> You have biases.
> He/She has prejudices.
Wow....That did it... Thanks Gene... You saved me hours of
frustration...


|