Skip to main content
Known Participant
November 4, 2024
Question

Delay in Message

  • November 4, 2024
  • 1 reply
  • 558 views

I am looking to put a delay in a message but the following does not work for me

 

app.setTimeOut(app.alert("Hello"), 5000);

 

Any ideas on what i'm doing wrong.

 

Thanks,

 

Alan

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
November 4, 2024

The code to execute must be a string:

 

app.setTimeOut("app.alert(\"Hello\")", 5000);

alan_9073Author
Known Participant
November 4, 2024

Hi try67,

 

thank you that worked perfectly.

 

is it possible to apply the principle to a function

 

Thanks,

 

Alan

alan_9073Author
Known Participant
November 4, 2024

Hi,

 

I think i have resolved the issue.

 

Regards,

 

Alan