XForms: getting integers from input field

Scott (sbarron@n-link.com)
Sat, 08 Nov 1997 14:39:40 -0600 (CST)

To subscribers of the xforms list from Scott <sbarron@n-link.com> :

Hello once again,

I have an input field in which an integer will be placed. I have tried
to use both a normal input and an integer input. I would like to retrieve the
numbers from these field so that they are the actual integer values I enter.
fl_get_input() returns a const char type. I tried to use this:

variable = (int)fl_get_input(my_input)

But that is giving me something completely different. Ie. I enter the integers
0 and 8 in two inputs and i get 134990560, 134991048 respectively, when I use
this method. What method should I be using to get the integers from my input
field?

I also have some comments aout form design since Ive seen some recent posts
on it. I was thinking about some type of call back editor would be kind of
neat. I suppose you'd have to keep all your callbacks in the file that fdesign
creates, but it would come in handy instead of having to switch to an editor.
Also, (ive seen this one mentioned) that when i open a file i have to create a
button and delete it. This is a rather annoying "feature". Other than that
its great! I was going to stick with .86 until .88, but those tabbed folders
are too cool to not use, so I'll be picking that up shortly.

Thanks for your help,
Scott
ut field in which an integer will be placed. I have tried
to use both a normal input and an integer input. I would like to retrieve the
numbers from these field so that they are the actual integer values
_________________________________________________
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/