Problem with code
dlg = CreateObject("roMessageDialog")
dlg.setTitle(tr("You have a message!"))
dlg.setText(json.msg)
dlg.addButton(1, tr("Accept"))
dlg.setMessagePort(createObject("roMessagePort"))
dlg.EnableBackButton(true)
dlg.show()
while true
msg = wait(0, dlg.getMessagePort())
if type(msg) = "roMessageDialogEvent"
if msg.isButtonPressed()
if msg.GetIndex() = 1
url = Url()+"/RokDev/mej.php"
post = "device="+device
body = read_body_and_headers(url,post)
exit while
end if
end if
endif
end while
dlg.Close()
BRIGHTSCRIPT: WARNING: roMessageDialog: This component is deprecated: