>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
Add two custom properties to the Form:
DIMENSION AO_Controls[1]
N_Controls = 0
In the .Init() Event of your TextBox (sub)class, do the following:
WITH THISFORM
.N_Controls = .N_Controls + 1
DIMENSION .AO_Controls[ .N_Controls ]
.AO_Controls[ .N_Controls ] = THIS
ENDWITH
Later on, you can iterate thru your "textbox list" as follows:
FOR EACH O_TextBox IN THISFORM.AO_Controls
WITH m.O_TextBox
...
ENDWITH
NEXT