Close all previously opened functions
Posted: Fri Feb 23, 2018 1:20 pm
Let functions be called earlier: f1(), f2(),... , fn(). Is it possible to close all of them from somefunction FunAllClose()?
Donnay Software Web Forums
http://bb.mobile.donnay-software.com/Donnay/
http://bb.mobile.donnay-software.com/Donnay/viewtopic.php?f=2&t=2345
Code: Select all
bBlock := SetKey( K_INS, {|| ChangeCursor() } )
CLS
@ 10,10 SAY "Wert1:" GET cVar1
READ
SetKey( K_INS, bBlock ) // restore old Value
so you can oMenu:disableItem(nIndex).Eugene Lutsenko wrote:It is possible to select different menu items.
Yes, when I wrote also thought that "close" is not quite the right word. Of course it means "stop function". And previously called for the execution of the function. And stop the work of the previously called function is not this function, which should be closed, and the other. Tom, you're right. Just sometimes because of this you have to restart the whole system. It's ugly.Tom wrote:I guess, "close" is the wrong word. You mean something like "terminate". In Clipper, there was/is a function to do that. If you want to terminate running functions from Xbase++, you have to set a value or function return code which is recognized inside the functions. Or: Kill your app and restart it.
How to do it?Auge_Ohr wrote:so you can oMenu:disableItem(nIndex).Eugene Lutsenko wrote:It is possible to select different menu items.
i'm not a Express++ User but i saw thisEugene Lutsenko wrote:How to do it?
Code: Select all
DCMENUITEM 'Test' PARENT oMenu WHEN {|| Not_Allow_When_Working() }
The only way to close a function is to return from the function.Sometimes when you call the next function the previous one should be closed. This can be done in the usual way. But they don't always do it. Therefore, I would like to do it forcibly programmatically.