Re: XForms: clearing input fields

AMIT BHATNAGAR (amit@cs.dal.ca)
Tue, 28 Jul 1998 14:05:20 -0300 (ADT)

# To subscribers of the xforms list from AMIT BHATNAGAR <amit@cs.dal.ca> :

> Basically, yes.
>
> You can write a little routine which loops over every member of the
> group, tests to see if the member is an Input object, and then clears
> it if it is:
>
> FL_OBJECT *obj;
>
> for ( obj = my_form->some_group->next;
> obj->objclass != FL_END_GROUP;
> obj = obj->next )
> if ( obj->objclass == FL_INPUT )
> fl_set_input( obj, "" );

ahh great. this is perfect, and since only input objects exist in this
group, no need for the check.

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/