Hi,
I am still struggling to the Msgbix2Async working, I am always get an error on the 'response' line. The error is below as is my full code is below (test app):
Local builder Error:
Test Code
I am still struggling to the Msgbix2Async working, I am always get an error on the 'response' line. The error is below as is my full code is below (test app):
Local builder Error:
B4X:
B4i Version: 8.10
Parsing code. (0.01s)
Building folders structure. (0.11s)
Running custom action. (0.05s)
Compiling code. (0.14s)
Compiling layouts code. (0.00s)
Compiling debugger engine code. (0.73s)
Building Xcode project. (0.14s)
Preparing project for builder. (0.06s)
Project size: 0.18 MB
Sending data to remote compiler. Error
B4i line: 27
If Resp = xui.DialogResponse_Positive Then
implicit conversion of 'int' to 'id' is disallowed with ARC
Test Code
B4X:
#Region Shared Files
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region
'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
End Sub
Public Sub Initialize
' B4XPages.GetManager.LogEvents = True
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Private Sub Button1_Click
Wait For (xui.Msgbox2Async("Unsaved profile data!", "W A R N I N G ", "C L O S E", "", "S A V E", Null)) Msgbox_Result (Resp As Int)
If Resp = xui.DialogResponse_Positive Then
Log("TRUE")
else if xui.DialogResponse_Negative Then
Log("FALSE")
End If
End Sub