Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help on object referencing
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00034790
Message ID:
00034813
Views:
31
>I wonder if anyone can help me with this. I have a form with a pageframe. The pageframe hase 3 pages. Each Page has 1 textbox (actually 10 - 14). Each textbox.name = 101, 201, 301 to refer to which page it on.
>
>What I would now like to do is something along the following:
>
>x=101
>do while x<=999 && this should cover all object that I need to refer
>returnval = x.value && where x = textbox name
>x = x+1
>enddo
>
>The problem is that I need to get to the text value without saying Form.PageFrame.Page1.101.Value
>or by having the system say that:
>
>101 is found @:
>
>TextBoxPosition = form.PageFrame.Page1.101
>
>This would then allow me to say
>
>retrunval = &texboxposition.value
>
>Hope this makes sence
>
>Thanks for any and all help
>
>James

I have to admit that didn't understand your question completely. But I have strong feeling that you should use Controls property:
For n=1 to thisform.pgframe1.page1.ControlCount
? thisform.pgframe.page1.controls(n).name
Endfor
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform