wcAppPageConnName( )

Syntax . . Returns . . Program Example . . Tips . . Related Topics . . A-Z Index . . Home

This function returns the unique database connection name for the app pages.

Example

wcDBSet (wcp, wcAppPageConnName(wcp));

Syntax

char *wcAppPageConnName (void *wcp);

Returns

APP_PAGESnThe return value, where "n" is the current session id. For example, if the current session is 7, wcAppPageConnName( ) will return "APP_PAGES7".

Program Example

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));

Tips

Related Topics

wcDBClose( )
wcDBOpen( )
wcDBSet( )
wcAppPageIsOpen( )


Top of Page . . Syntax . . Returns . . Program Example . . Tips . . A-Z Index . . Home