Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to stop the action by pressing another button ?
Message
 
To
02/11/2006 08:27:40
Hee Lim Wang
Fantasy Software Enterprise
Malaysia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01166500
Message ID:
01166556
Views:
15
>vfp7 or vfp9

VFP 9:
add a property in the form, named bStopLoop
In your big loop put:
thisform.bStopLoop = .f.
SCAN
  ...........

  DOEVENTS
  IF thisform.bStopLoop
     EXIT
  ENDIF
ENDSCAN
In your stop button Click EVent put:
thisform.bStopLoop = .t.
I am not sure iuf this will works in VFP7 becuase I don't know if VFP7 has DOEVENTS command (never worked with that version).
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform