ALERT(title as String, msg as String, type as Integer, button0 as String, button1 as String, ... , ButtonN as String)
Description
Displays a Palm OS device alert box of type 'type' and waits for the user to select one of the buttons. Returns the number of the button selected, starting from zero.
Type is the format of the alert box. title is a text string that will be displayed at the top of the alert box. Msg is the text of the information, confirmation, warning, or error message that displays in the middle of the alert box. Button, button1, etc. are the texts to appear in each button at the bottom of the alert box. You may provide as many buttons as will fit, but generally 2 or 3 are used.
|
Type=0 |
display an 'information' type alert box |
|
1 |
display a 'confirmation' type alert box |
|
2 |
display a 'warning' type alert box |
|
3 |
display an 'error' type alert box |
Example
Dim result as Integer
Result=Alert("Get metric decision.......", "Do you want to use meters or feet?",0,"Meters","Feet")
If result=0 then
..................
else
..........................
end if