menulist = NewStringList()
list add (menulist, "first entry")
list add (menulist, "second entry")
list add (menulist, "third entry")
ShowMenu ("please choose now", menulist) {
msg ("--" + result + "--")
if (not result=null) {
msg ("You have chosen the " + result)
}
else {
msg ("You have chosen to press cancel")
}
}
msg ("hzhh")