Your Digital Media Has Never Looked So Good

Topic Author
Posts: 294
Joined: Fri Feb 15, 2013 2:08 pm

keyboarddialog Crashing

Tue May 16, 2017 6:58 pm

Something odd. I have a pin pad where user inputs a code, if the correct etc it calls a keyboard to come up to enter other info. This all worked when I used onkeyevent but have since changed to using an observer on the buttonselected. The pin pad works and enters the keyboard function. I have REM out each line to isolate the crash. Whenever it gets to the code crashes and reboots. I get no error on the debugger. The code looks as follows

function setcode()
pindialog = createObject("roSGNode", "PinDialog")
pindialog.title = "Enter 5 DIGIT CODE"
pindialog.optionsDialog = false
m.pad.secureMode=false = pindialog
end function

function checkbutton
function checkbutton()
?"in checkbutton"
if 0 and len(
?"CODE ""buttonSelected") = true
end if
end function

function setpass()

function setpass()
keyboarddialog = createObject("roSGNode", "KeyboardDialog")
keyboarddialog.title= "Enter Phrase"
keyboarddialog.visible = true
m.key.showTextEditBox= true    'CRASH OCCURS HERE
end function

Any ideas? Like I said worked with  onKeyEvent but needed to get away from that and use observerfield. All of this takes place in a Scene. Thanks for any advice.

Who is online

Users browsing this forum: destruk and 6 guests