Frederick Posted January 4, 2023 Share Posted January 4, 2023 Why am I getting a "Missing ) in Arguments List" error for the following code? with TUniPanel do begin Caption:='No Transactions In All Ledgers For <font color="red">2023</font>'; JSInterface.JSCode('Ext.get('#1'.id+"_td").setHtml("'+ Caption +'");'); end; If I change the caption to "No Transactions<br>In All Ledgers", there is no error. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1562) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 4, 2023 Share Posted January 4, 2023 Hello, Your post: Quote Link to comment Share on other sites More sharing options...
Frederick Posted January 4, 2023 Author Share Posted January 4, 2023 My earlier post concerns the display of angled brackets and where the entire caption has the same font colour. In this post, the app crashes without the display of anything. I only want the "2023" year to display in red. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 4, 2023 Share Posted January 4, 2023 3 hours ago, Frederick said: setHtml("'+ Caption +'") Instead, try this: setHtml('''+ Caption +''') Quote Link to comment Share on other sites More sharing options...
Frederick Posted January 4, 2023 Author Share Posted January 4, 2023 Thanks. This fixed the problem. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.