On 5/14/07, Garry Bettle <[EMAIL PROTECTED]> wrote:

> I'm trying to build a form that has a toggle-like button.  Press it
> once, and a method fires that begins to call a webservice API (written
> in Python).  This process should continue until the webservice returns
> with, "Suspended" or "Closed".  Or, and this is a big OR, the user
> clicks the toggle button again and the method should stop running.

You're already in a loop that has some sort of DO WHILE NOT Done()
logic. Add a second check for DO WHILE NOT Done OR THISFORM.Stop and
add a checkbox/pushbutton/whatever to the form that toggles
THISFORM.Stop. That way, you complete when you are done with the
current API call, and can drop through into a cleanup routine.

-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://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