|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Message Box Help
Hi,
This should be a fairly simple question. I want a message box with okcancel options where ok will proceed with my program, and cancel will cancel the program and terminate the kornshell. Code: Code:
# Get input directory from user InputDirectory=$(fileBox -D -d "Y:/job/03013rsi/edit" -t "Select translation directory") #Define button return values OK=1 Cancel=3 #Display Messagebox msgbox -fb okcancel -d1 -i information jepp_change_v4_bryan.ksh "*sometext" I was under the impression, from viewing the msksoftware website, that the button return values are printed to standard output unless otherwise specified by the use of the -q option. And that exit status values are: 0 - failed 1 - successful 2 - cancel 3 - abort 4 - retry 5 - ignore 6 - yes 7 - no Thus, when I defined my button return values I choose Ok - 1 = successful and Cancel - 3 = abort thanks Bryan |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Message Box Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|