Skip to main content
Known Participant
Nov 4, 2024 3:55 PM UTC
Question

Delay in Message

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 is closed to new replies. Start a new post to keep the conversation going.

9 replies

try67
Community Expert
Community Expert
Nov 4, 2024 4:02 PM UTC

The code to execute must be a string:

 

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

Translate
alan_9073Author
Known Participant
Nov 4, 2024 4:24 PM UTC

Hi try67,

 

thank you that worked perfectly.

 

is it possible to apply the principle to a function

 

Thanks,

 

Alan

Translate
alan_9073Author
Known Participant
Nov 4, 2024 8:27 PM UTC

Hi,

 

I think i have resolved the issue.

 

Regards,

 

Alan

Translate