Hi Appeon Community,
Restart() function does not provide Restarting the application, The application is getting closed but it not opening again, What will be the issue? Please help me .
Hi Appeon Community,
Restart() function does not provide Restarting the application, The application is getting closed but it not opening again, What will be the issue? Please help me .
Hi John,
I am not using Restart() in application's event, I am using in a window to restart the application.
I am deployed my application as PBD, it is 32 bit application.
I am using PB 2021.
Hi Dev;
The Restart command can be called from anywhere. You can see this in action in my STD Framework's Demo App. You can download the free framework & demo App from here ...
https://sourceforge.net/projects/stdfndclass/files/Applications/PowerBuilder/OrderEntry/
Tip: During a restart operation, you might want to set a global flag so the the CloseQuery & Close events are ignored (depending on your App's design).
HTH
Regards .... Chris
Hi John and Olan,
If it's really true that the Restart() can only be used in the Idle event, that kind of makes it an almost useless command isn't it?
I'd like to use it being in control of whenever I feel that a restart would be needed, not when the user has fallen asleep for x time...
Maybe I'm missing the point here.
Best regards,
MiguelL
Like John said: RESTART can be used in the application-level IDLE event.
For a question such as this, it is VERY helpful to know what version, release & build of PowerBuilder you are using... would you please tell us?
Also: Is the app deployed as machine code (DLL's) or pseudo-code (PBD's)?
Is the application deployed as 32-bit or 64-bit?
Are you using PowerClient to manage/start the application?
The PB Help topic for the Restart() PowerScript function leads one to believe it should be used only in the Application object's Idle event. Is this where you are calling it from? If not, where are you calling Restart() from?