>Hello everyone, me again...
>Is there a way to get a list of fields from a table?
=AFIELDS() command gives a list of fields.
>What I would like to do is as follows:
>
>on the save button, check all fields on the form and see if any
>of them were left blank and based on this inform the user that
>so and so field can not be left blank.
Create a property in your base class:
is_allowed_blank=.f.
METHOD is_blank
* Assumes character field
IF LEN(ALLTRIM(this.value))=0 AND this.is_allowed_blank
=MESSAGEBOX(blah, blah, blah)
this.setfocus
ENDIF
Then you can loop through all fields on
the form and check call each is_blank method.
Or
Loop through each field by the forms collection .CONTROLS(#)
and check their.
Gene Berger
The Corner Analyst
13995 Graham Road
Pataskala, Ohio 43062
(614) 927-8994
gberger@asacomp.com