Back

GetStringInfoNumber()




    USAGE

    Number = (long) GetStringInfoNumber(Window, GadgetID, Base)

    FUNCTION

    Gets the string belonging to the specified string gadget, converts it into a number, and returns that value. The conversion base is also specified. The base can be any number between 2 and 16. Obviosly hex (16), decimal (10), octal (8), and binary (2) are of the most interest, but you are welcome to insist on input in base 5.

    INPUTS

    Window Pointer to the window the StringInfo structure resides in.
    GadgetID Short integer ID of the gadget.
    Base Base (2 trough 16) for the conversion.

    RESULT

    Number = the translated number

    SEE ALSO

    SetStringInfoNumber