|
<< Click to Display Table of Contents >> C Examples: DbiGetCursorProps |
![]() ![]()
|
Return a string containing cursor properties.
OutName must have sufficient space to hold the return string. This example uses the following input:
fDbiGetCursorProps(hCursor, Name);
DBIResult fDbiGetCursorProps(hDBICur hTmpCur, pCHAR OutName)
{
DBIResult rslt;
CURProps Prop;
rslt = Chk(DbiGetCursorProps(hTmpCur, &Prop));
if (rslt != DBIERR_NONE)
return rslt;
wsprintf(OutName, "Name: %s, Name Size: %d\r\nTableType: %s"
", Fields: %d\r\nRecord Buffer Size: %d, Key Size: %d\r\nIndexes: %d"
", Validity Checks: %d\r\nRef Integ Checks: %d, Passwords: %d",
Prop.szName, Prop.iFNameSize, Prop.szTableType, Prop.iFields,
Prop.iRecBufSize, Prop.iKeySize, Prop.iIndexes, Prop.iValChecks,
Prop.iRefIntChecks, Prop.iPasswords);
return rslt;
}