home *** CD-ROM | disk | FTP | other *** search
- create apt proc clrfd_1() as
- begin
- foreach f in $curform
- begin
-
- /* Don't erase date or login fields */
- if f:name != "date" and f:name != "login"
- begin
- /*
- ** skip over trim fields,
- ** set entry fields to NULL,
- ** set choice fields to default.
- */
- if f:fldtype = 5
- continue
- else if f:fldtype = 4
- f = NULL
- else
- f = f:default
- end
- end
- return
- end
-