iOS Question B4XPages how to refer to open page

cwt

Active Member
Licensed User
Longtime User
I am adding send text message in my iOS app and need to refer to the page that is open (B4XPages). In the code below, how would I refer to the open page in the line "smsc.Show(???)? What is the code to reference the open page anywhere within the page itself?

B4X:
Sub SendTextMessage(PhoneNumber As String)
    Dim smsc As MessageComposer
    smsc.Initialize("smsc")
    smsc.SetRecipients(Array As String(PhoneNumber)) 'must be strings!
    smsc.Body = "Hello!!!"
    smsc.Show(???????)
End Sub
 
Last edited:
Top