|
|
 | | From: | Sixto | | Subject: | 2 process | | Date: | 26 Nov 2004 01:17:52 -0800 |
|
|
 | I'm trying to execute two pipelines process on an aplication PowerBuilder.
I've a window with two buttons, one throws the next code in the clicked event:
------- BUTTON 1 for contador=0 to 100000 for contador=0 to 100000 sle_1.text =string(contador) next next -------
and the other one throw the next code in the clicked event:
------- BUTTON 2 sle_2.text="Process 2 Executed" sle_2.textcolor=RGB(0,155,155) -------
But when BUTTON 1 is clicked I can't click other button!!. How can I do it?
|
|
 | | From: | Jim Douglas | | Subject: | Re: 2 process | | Date: | Fri, 26 Nov 2004 07:42:40 -0600 |
|
|
 | Look up Yield(), or something like that, sorry it's been a few years. When a process is executing like a machine gun it's hard to stop and do something else, this Yield() will tell the machine gun process to stop every x number of seconds to see if there is anything else to do.
"Sixto" wrote in message news:b3b2bc25.0411260117.f949c01@posting.google.com... > I'm trying to execute two pipelines process on an aplication PowerBuilder. > > I've a window with two buttons, one throws the next code in the clicked event: > > ------- BUTTON 1 > for contador=0 to 100000 > for contador=0 to 100000 > sle_1.text =string(contador) > next > next > ------- > > and the other one throw the next code in the clicked event: > > ------- BUTTON 2 > sle_2.text="Process 2 Executed" > sle_2.textcolor=RGB(0,155,155) > ------- > > But when BUTTON 1 is clicked I can't click other button!!. How can I do it?
|
|
 | | From: | Sixto | | Subject: | Re: 2 process | | Date: | 30 Nov 2004 00:15:13 -0800 |
|
|
 | Thank tou very much, it's all right!
"Jim Douglas" wrote in message news:... > Look up Yield(), or something like that, sorry it's been a few years. When a > process is executing like a machine gun it's hard to stop and do something > else, this Yield() will tell > the machine gun process to stop every x number of seconds to see if there is > anything else to do. > > "Sixto" wrote in message > news:b3b2bc25.0411260117.f949c01@posting.google.com... > > I'm trying to execute two pipelines process on an aplication PowerBuilder. > > > > I've a window with two buttons, one throws the next code in the clicked > event: > > > > ------- BUTTON 1 > > for contador=0 to 100000 > > for contador=0 to 100000 > > sle_1.text =string(contador) > > next > > next > > ------- > > > > and the other one throw the next code in the clicked event: > > > > ------- BUTTON 2 > > sle_2.text="Process 2 Executed" > > sle_2.textcolor=RGB(0,155,155) > > ------- > > > > But when BUTTON 1 is clicked I can't click other button!!. How can I do > it?
|
|
|