Hiya,
I am trying to get the input back from a field in a normal type input
field. The problem is that i dont quite understand the documentation about
the
[const] char *fl_get_input(FL_OBJECT *obj)
I presume this returns a pointer to the first element in the string.
Therefore successive incrementation should produce the next in the string.
But I get the value of the next letter in the alphabet. I have tried
several different ways but all failed.
I would be very grateful of any helpful suggestions about this.
Code fragment below - in callback file.
-------------------
char *plain;
char store[100];
int x=0;
void plaintext_cb(FL_OBJECT *ob, long data)
{
*plain = *fl_get_input(ob);
for(x=0;x<=4;x++)
{
store[x]=*plain;
plain++; // I am sure I have to reference the address here.
printf(">%c\n",store[x]);
}
}
Any help would be gratefully received as I am quite proporly stuck.
Thanks,
Rob.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Robert J.Nield ~
~ -------------- ~
~ Telephone / answer machine: +44(0)131 449-8323 ~
~ Home page at http://www.cee.hw.ac.uk/~ceerjn ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________________________________________________
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/xforms-archive/