XForms: Getting info from objects in callbacks.

From: Jon Guerin (jguerin@home.com)
Date: Thu Jul 20 2000 - 16:41:54 EDT

  • Next message: Steve Lamont: "Re: XForms: Getting info from objects in callbacks."

    # To subscribers of the xforms list from Jon Guerin <jguerin@home.com> :

        Hello, I'm having a tad bit of trouble doing what I want to do with
    xforms.

    I have 2 text fields and a button. I need it so that the button, when
    pressed, does an atoi on those 2 text fields. I can't seem to find a
    clean way to do this, though. Can someone send me some psuedocode for a
    function that will do what I need above :)?

    Basically...

    void CB_Btn_Routine(...)
    {
        char *f1, *f2;
        f1 = atoi(fl_get_input(field1)); // <- How do I get address/etc of
    this field?
        f2 = atoi(f2_get_input(field2)); // same...
        str = f1+f2 // Psuedocode ^_^...
        write_robot(str); // func to send str out a ser. port.
    }

    Yeah... hmm appreciate any help. Thanks!

    Jon

    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Thu Jul 20 2000 - 12:46:06 EDT