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)