>I have a number of routines which are invoked when a user clicks a button. The problem is the routines take quite a while to run and therefore I would like to display a message to the user of what is happening. Rather than use a Wait window are there any other techniques I could use?
>
>I have seen a form with a list box or something and everytime somethings happens it writes a record to a cursor which is displayed in a list box on the form.
>
>
>"Now printing report for style T675" 29/12/04 15:34:00
>"Now attaching report for style T567" 29/12/04 15:35:00
>
>
>Is this easy to do I cant remeber where I have seen this? Any help would be appreciated.
I've had this scrolling listbox in a couple of places where it would have to report about once per second or so, i.e. in long processes where there's something to report every once in a while, but nothing that could be expressed as a percentage. The code would look like this:
lParam cText
with this.listbox
.additem(cText)
if .listcount>10
.removeitem(1)
endif
endwith
...so I never displayed more than ten items.