Hey All,
So I'm writing a little shell script and in it I'm using "xmessage" to get back input from the user.
The user will get a msg box that could have 3 or 4 different messages in the msg box depending on the situation.
And I am using a "case" statement to handle the return codes from xmessage's 3 or 4 different buttons that it could have.
Depending upon the situation it could show either 3 or 4 buttons.
I would like to only keep one case statement to handle the return codes because it could get pretty cumbersome to have 4 different case statements, one for each msg box.
So my question is: Would it be possible to define what the return codes would be for each button manually???
(by default if you have 4 buttons the return codes would be (from button 1 to 4) 101,102,103,104)
Code:
For Example:
##################################################
# MSG BOX 1 #
# . . . . #
Buttons --> # |Button 1| |Button 2| |Button 3| |Button 4| #
Return Codes --> # 101 102 103 104 #
##################################################
##############################################
# MSG BOX 2 #
# . . . #
Buttons --> # |Button 1| |Button 2| |Button 3| #
Return Codes --> # 101 102 104 #
##############################################
Thanks in Advance,
Matt