Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object List
Message
From
22/06/2001 09:20:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/06/2001 07:53:14
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00522334
Message ID:
00522383
Views:
6
The other responses dealt about getting objects already on a form, but I often prefer to create an array of objects at runtime.

Create a new form, and place the following example in the Init():
ThisForm.AddProperty("oCheckBoxes(10)")
local lnCounter
for lnCounter = 1 to 10
	ThisForm.AddObject("ThisForm.oCheckBoxes(lnCounter)", "CheckBox")
	with This.oCheckBoxes(lnCounter)
		.Value = rand() < 0.5
		.Top = lnCounter * 15
		.Visible = .T.
	endwith
next
>Hello everyone,
>
>It's me again :p
>
>How can I get a list of object in a form? To be more specfic, I want to examine
>whether the user have filled in all the textbox or not when he click the submit
>button.
>I want to have a list of textboxes and then check them on by one.
>
>Thanks a lot!
>Jimi
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform