WScript.Sleep for HTA?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I've got an HTA that does a bunch of database processing
during which I update a <textarea> with progress messages.

Timestamped messages are added at the top if the
<textarea> (so they don't scroll out of site).

It appears that it isn't updated when the Sub is called.

Is there an equivalent to one of the following that I could use?
WScript.Sleep (WSH), Response.Flush (ASP), DoEvents (VB).

Basically, I use:

Call doStatus("Progress.")

Sub doStatus(what)
document.formHTA.Status.value = Now & what & vbCrLf & _
document.formHTA.Status.value
End Sub

<form name="formHTA">
<textarea name="Status" cols="50" rows="8" readonly></textarea>
</form>

Thanks in advance.


[ I posted this yesterday with the (incomplete!) Subject of "HTA"
in the microsoft.public.inetserver.asp.components newsgroup. ]


.



Relevant Pages

  • Re: WScript.Sleep for HTA?
    ... > during which I update a <textarea> with progress messages. ... > Timestamped messages are added at the top if the ... > It appears that it isn't updated when the Sub is called. ...
    (microsoft.public.scripting.vbscript)
  • HTA
    ... during which I update a <textarea> with progress messages. ... Timestamped messages are added at the top if the ... It appears that it isn't updated when the Sub is called. ...
    (microsoft.public.inetserver.asp.components)