wcURL( )

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

Returns the URL that identifies this browser session's connection.

Example

returnCode = wcURL(cntrlHandle, &URL);

Syntax

int wcURL(void *controlHandle,
          char **URL)
controlHandleThe handle to the control structure.
URLOut parameter used to return the URL.

Returns

0Success.
Error codeFailure or exception. For a list of possible error codes, see Error Messages.

Tips

Program Example

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

If you are constructing HTML programmatically from within an event handler, you must perform this task explicitly, as shown in the following code. The eventFunction( ) is called to insert dynamic HTML tags when an <MIEVENT> tag is encountered in an AppPage.

int eventFunction( ) 
{
...
	wcPrintf("<A HREF=%s?MIval=menu&last=smith>", wcURL(wcp));
...
}

In this example, the URL is represented by the placeholder %s. This placeholder is replaced by the return value of wcURL( ).

Related Topics

Overview of Connection Types (Managed, Direct)


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