This function returns the unique database connection name for the app pages.
wcDBSet (wcp, wcAppPageConnName(wcp));
char *wcAppPageConnName (void *wcp);
APP_PAGESn | The return value, where "n" is the current session id. For example, if the current session is 7, wcAppPageConnName( ) will return "APP_PAGES7". |
Program Example 1:
wcGetVariable(wcp, "$MI_SERVER", &dbname); wcGetVariable(wcp, "$MI_USER", &dbuser); wcGetVariable(wcp, "$MI_PASSWORD", &dbpass); wcDBOpen(wcp, wcAppPageConnName(wcp), dbname, dbuser , dbpass);
Program Example 2:
wcDBSet (wcp, wcAppPageConnName(wcp));
Program Example 3:
wcDBClose(wcp, wcAppPageConnName(wcp));
wcDBClose( )
wcDBOpen( )
wcDBSet( )
wcAppPageIsOpen( )