RestartRequested

PowerBuilder Native Interface

IPB_Session interface:

RestartRequested method

Description

Syntax

HasPBVisualObject()

Return Values

Examples

PBXRESULT   PB_MyConsoleAppRunner::RunApplication()
{
    PBXRESULT res;
    pbboolean restart = FALSE;

    do
    {
        res = StartApplication();
        if (res != PBX_OK)
            break;

        restart = GetSession()->RestartRequested();
        if (restart)
            RecreateSession();

    } while (restart);

    return CleanApplication();
}

Usage

See Also