WebExplode( )

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

Processes an AppPage with the special tags embedded within it.

Example

returnCode = WebExplode(cntrlHandle, myAppPage, "param1=3600");

Syntax

int WebExplode(void *controlHandle, 
               char *appPage,
               char *variableList)
controlHandleThe handle to the control structure.
appPageThe handle to the AppPage. Use the value returned by wcLoad( ).
variableListA supplemental list of variables for the current and recursive calls to WebExplode( ). Variables in the list are specified as name-value pairs, separated by ampersands (&), as follows:
name1=value1&name2=value2[&name=value]...

Returns

AppPageIf successful, returns a pointer to the AppPage.
Error codeFailure or exception. For a list of possible error codes, see Error Messages.

Program Example

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

int handleRequest(wcp)
    void	*wcp;
{
    char    *pagePtr;
    char    *pageId;
    int     ret;

    wcGetVariable(wcp, "MIval", &pageId);
	
    if((ret = wcLoad(wcp, pageId, &pagePtr)) < 0)
		return wcTraceErr(wcp, ret);

    ret = WebExplode(wcp, pagePtr, NULL);

    if (pagePtr!=NULL)
        free(pagePtr);

    return (ret);
}

Related Topics

wcLoad( )


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