Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xoceunder
Roku Guru

Could you help me with my code

this error

sub showPinDialog()
    m.pinDialog = createObject("roSGNode", "PinDialog")
    m.pinDialog.title = "Example  Pin Dialog"
    'm.pinDialog.optionsDialog = true
    m.pinDialog.message = "Press * To Dismiss"
    m.pinDialog.buttons = ["Ok","Cancel"]
    m.top.dialog.observeFields("buttonSelected","onVerifyPin")
    m.top.dialog = m.pinDialog
End sub

Function onVerifyPin()
    m.userpin = m.top.dialog.pin
print m.userpin
    if m.top.dialog.buttonSelected = 1
       print "ok button pressed"
    else
       print "cancel button pressed"
  m.top.dialog.close = true
    end if
end Function


146:*     m.top.dialog.observeFields("buttonSelected","onVerifyPin")
0 Kudos
1 REPLY 1
xoceunder
Roku Guru

Re: Could you help me with my code

I already found the error where I was
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.