wcStore( )

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

Places an AppPage in the database using the AppPages repository database connection. This function will insert a new row if one exists already, based on the key column, ID. Two other keys must exist in each table; these are Project and Description. When inserting, the value of Project will be "APB".

returnCode = wcStore(cntrlHandle, pageID, &pageHandle);

Syntax

int wcStore(void *controlHandle, 
            char *MiVal,
            char *pageHandle)
controlHandleThe handle to the control structure.
MiValThe page ID. If this argument is null, wcStore( ) uses the value of the MIval parameter from the configuration file.
pageHandleHandle to the AppPage.

Example

returnCode = wcStore(cntrlHandle, pageID, pageHandle);

Tips

Program Example

The following code shows how wcStore( ) is used in an application.

char newPage[4000];
...
/* Code to construct the AppPage itself */
/* and assign the HTML text to newPage */
...
wcStore(wcp, NULL, newPage);

Related Topics

wcAppPageConnName( )
wcLoad( )


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