Function Statement.parameterIndex

Gets the index of a bind parameter.

int parameterIndex (
  string name
);

Returns

The index of the parameter (the first parameter has the index 1) or 0 is not found or out of range.