[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ProgSoc] Easy VB question



This question must have been asked many times before, but I couldn't
phrase it in any usefull search terms...

Button click calls method foo in a bas module.
Form also has a text field (let's call it label).

public function foo(arg as something) as whatever
	Form.label.value = "Now doing this..."
	call do_this(...)
	Form.label.value = "Done."
end function

Problem is that VB insists on completing everything in the function before
actually updating any of the form elements...so the label would only ever
show "Done."
For purposes of showing progress/status as it happens, how can I overcome
this?

Thanks,
Martin.

-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.