cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

ProMessage YES_NO Userinput

ptc-108214
1-Visitor

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

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
Announcements
Business Continuity with Creo: Learn more about it here.

Top Tags