Processes an AppPage with the special tags embedded within it.
returnCode = WebExplode(cntrlHandle, myAppPage, "param1=3600");
int WebExplode(void *controlHandle, char *appPage, char *variableList)
controlHandle | The handle to the control structure. |
appPage | The handle to the AppPage. Use the value returned by wcLoad( ). |
variableList | A 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]... |
AppPage | If successful, returns a pointer to the AppPage. |
Error code | Failure or exception. For a list of possible error codes, see Error Messages. |
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); }