On 1/22/14 11:31 AM, Joe Yoder wrote:
> I would like to have a 'Refresh" button on the form to trigger processing
> of the new file.  The data analysis happen as the form is initialized and
> the results are store in properties of the form.  One approach might be to
> setup a global variable "Done", initialize it to false, and then setup a
> loop to call the form until "Done" is true.  The 'Exit" button would set
> "Done" to true and close the form while the "Refresh" button would simply
> close the form.
> 
> Is this a good approach or is there a better way?

Put the property-filling and data-analysis bits into a new method or methods of 
the
form, then in the Form's init() method, call that function. Add a Refresh 
button that
calls the function.

Looping and reinstantiating the form isn't necessary, will likely flicker, and 
isn't
any easier than what I describe.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to