Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting control back
Message
 
To
24/06/2003 11:05:08
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00803309
Message ID:
00803760
Views:
13
What if you add:
....
THISFORM.ole_MS_COMM.Output = CHR(0)
thisform.Activate
>hello all --
>
>using w2k and vfp 6.0 (sp5)......
>
>i have a modal form with command buttons that send characters to comm port. here is an example code in cmd_Play.CLICK event:
>
>
>THISFORM.ole_MS_COMM.Output = CHR(145)
>WAIT TIMEOUT 0.1 ''
>THISFORM.ole_MS_COMM.Output = CHR(0)
>
>
>when i click the button, the characters are sent to device (the vcr starts
>to play). BUT control never comes back to the form. i cannot click any
>other buttons or controls on the form.
>
>i have found two different methods to get back control.....neither is a solution.
>
>METHOD 1:
>if i add a messagebox statement immediately after the code,
>i get normal control of the form when i close the messagebox:
>
>THISFORM.ole_MS_COMM.Output = CHR(145)
>WAIT TIMEOUT 0.1 ''
>THISFORM.ole_MS_COMM.Output = CHR(0)
>
>=MESSAGEBOX ( 'exiting cmd_Play.CLICK' , 0 , 'debug msg' )
>
>
>METHOD 2:
>when the form is in its "frozen" unresponsive state....if i right
>click on the task box (in the task bar) and select 'minimize' and
>then right click on task box and select 'maximize' --- i immediately
>gain control of the form and it responds normally.
>
>could anyone give me a clue what is happening here ??
>
>thanks,
>patrick
Previous
Reply
Map
View

Click here to load this message in the networking platform