Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/20/23 in all areas

  1. Hi, In case anyone is interested, I have found that the following approach would solve the problem: procedure TMyUniPanel.WebCreate; begin inherited; ClientEvents.UniEvents.Values['beforeInit'] := 'function beforeInit(sender, config){ '+ 'sender._log = sender._log ?? "" + "\nUniEvents-beforeInit"; '+ '}'; ClientEvents.UniEvents.Values['afterCreate'] := 'function afterCreate(sender, config){ '+ 'sender.on("beforerender", function(sender, eOpts){ '+ ' sender._log = sender._log + "\nExtEvents-beforerender"; '+ '}); '+ '}'; end; Best regards,
    1 point
  2. When I put your code into https://pynative.com/online-python-code-editor-to-execute-python-code/ it works fine. Only had to replace the : with a ; at the end of this line: sum+=i; Result: Enter the number:The sum up to 3 is 6
    1 point
×
×
  • Create New...