Product Documentation

V11.5 Update Guide

Previous Topic

Next Topic

DSQL - New ctsqlGetParameterIndexByName function

In c-treeACE V11.5 and later, ctsqlGetParameterIndexByName, provides a way to identify the parameter index number from its name when using named parameters.

ctsqlGetParameterIndexByName

Declaration

CTSQLRET ctsqlGetParameterIndexByName(pCTSQLCMD hCmd CTSQLCHAR* name)

Description

Retrieve the parameter index given its name when using named parameter :name.

  • hCmd - the command handle
  • name - parameter name (without ':').

Return

Return the parameter index or -1 if not found.

TOCIndex