XForms: Getting an input obj's text-- what should be assumed?

Eric_Kischell@IUS5.IUS.CS.CMU.EDU
Sat, 26 Jul 97 12:29:20 -0400

To subscribers of the xforms list from Eric_Kischell@IUS5.IUS.CS.CMU.EDU :

XFormers,

I seem to be exper occasion mem trash when I try to get the following
string from the input object.

-----
code frag)
const char *ret_str= NULL;
...
if ( (obj == fd_frmEnterreport->input) ){

ret_str = (const char*)fl_get_input(obj);
...
-----

Q: What should I assume about the return string for each of the follow cases
(ie return string is NULL, return string is not NULL and guar to be '\0'
terminated, etc.)???

FL_RETURN_END_CHANGED
The default. Callback is called at the end if the field is modified.

FL_RETURN_CHANGED
Invoke the callback function whenever the field is changed.

FL_RETURN_END
Invoke the callback function at the end regardless if the field is modified or not.

FL_RETURN_ALWAYS
Invoke the callback function upon each keystroke.

thx in adv
e.-
_________________________________________________
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/