Skip to main content
1-Visitor
Jun 6, 2005 6:03 AM UTC
Question

ProMessage YES_NO Userinput

Hi all!

I want to get the keyboard input for a YES/NO parameter
with defaut value YES. Displayed in the message window.
(No UI Dialog)
ProMessage... ???

Can someone help me?
Thanks!

Greetings
Lars Ziegler

    1 reply

    1-Visitor
    Jun 8, 2005 11:57 AM UTC
    Lars,

    Getting Yes/No input from the message window is no different than input of any other type. You want to have the "Yes" string as the default value.

    Take a look at the Pro/Toolkit User's Guide section on default message values: "Pro/Toolkit User's Guide > Messages > Using Default Values."

    The actual function to read the input is ProMessageStringRead(). You'll want to read the value and just check the string (or just the first character) against "yes" or "no" ('y' or 'n') and make sure you account for case.

    Good Luck,

    Michael Fussy
    Translate