Assuming you are trying to use your own version of a progress bar, what you
are describing should work just fine. I just put together the following code
as an example:
The code in the library method:
method myProgressBar(const progressBarUIO UIObject)
progressBarUIO'text = blank()
;;; obviously the number of loops would be from a passed variable based
;;; on some condition in your calling form.
for i from 1 to 5
;;; in the wingdings font 'n' is a solid box.
progressBarUIO'text = progressBarUIO'text + "n"
The code on a pushbutton in your form:
method pushButton(var eventInfo Event)
;;; myProgressBarTXT is the text field that is being used as a
;;; progress bar.
if myProgressBarUIO.attach(myProgressBarTXT) then
I hope this helps.
> I'm like to be able to control a progress bar object on a form from a
> library procedure, but I can't quite figure out how to attach to a
> UIObject from a library procedure on a form that is already open. I've
> tried passing the UIObject to the library procedure by reference, that
> gives me a compile error. I've also tried opening the form and then
> attaching to the progress bar object, but that opens another copy of the
> form. When I try to attach to the form from the library and then attach
> to the progress bar, I get attached to the pushbutton the procedure was
> called from, not the progress bar.