wcDropVariable( )

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

Drop a particular variable.

Example

returnCode = wcDropVariable(cntrlHandle, "$customerSelection");

Syntax

int wcDropVariable(void *wcp, 
                   char *varname)
wcpThe handle to the control structure.
varNameName of the variable for which you want to drop.

Returns

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

Tips

Program Example

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


    wcGetVariable(wcp, "$MIval", &mival);

    if (mival==NULL)
        wcDropVariable(wcp, "$MIval");

Related Topics

wcSetVariable( )
wcGetVariable( )


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