B4J Question page.msgbox2 cann't show

jinyistudio

Well-Known Member
Licensed User
Longtime User
my abmaterial is 4.51, b4j is 9.3
my application have use msgbox2 in the lots of abmpage. but just one page cann't showing msgbox2. I get following message in browser. Why ?

B4X:
If n3>0 Then
    Dim s1 As String=$"請確認是否要刪除己經勾選的${jyStyle.StLabel("red",n3)}項目,${CRLF}按OK刪除,按CANCEL則不刪除"$
    page.Msgbox2("deletedevice",s1, "", "OK","CANCEL",False, ABM.MSGBOX_TYPE_WARNING,False,ABM.MSGBOX_POS_CENTER_CENTER,"")
Else
    MyABM.NotifyMsg(page,"nm875",$"請先勾選要刪除的項目"$,0)
End If

B4X:
ready to connect the websocket devices.1658471614668.js:29:1033
Using RobustWebSocket core.4.38.min.js:1:2079
WebSocket opened, reconnected?: false core.4.38.min.js:1:2784

Uncaught SyntaxError: missing } after property list
    b4j_eval http://localhost:8100/js/core.4.38.min.js:1
    b4j_connect http://localhost:8100/js/core.4.38.min.js:1
    dispatchEvent http://localhost:8100/js/core.4.38.min.js:1
    a http://localhost:8100/js/core.4.38.min.js:1
note: { opened at line 3, column 5
 

Attachments

  • q1.png
    54.2 KB · Views: 154
Last edited:

jinyistudio

Well-Known Member
Licensed User
Longtime User
I remove jystyle.stlabel(..). it is OK now !
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…