Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » UltraLite - C and C++ Programming » API Reference » UltraLite C++ API Reference » ULSqlcaBase class


GetParameter function

size_t ULSqlcaBase::GetParameter(
  ul_u_long parm_num,
  char * buffer,
  size_t size
  • parm_num   A 1-based parameter number.

  • buffer   The buffer to receive parameter string.

  • size   The size, in chars, of the buffer.


Gets the error parameter string.

The output parameter string is always null-terminated, even if the buffer is too small and the parameter is truncated. The parameter number is 1-based.

  • If the function succeeds, the return value is the buffer size required to hold the entire parameter string.
  • If the function fails, the return value is zero. The function fails if an invalid (out of range) parameter number is given.