Returns the Text List (SmartList) associated with the input outline member.
Syntax
ESS_FUNC_M EssOtlGetMemberSmartList(hOutline, hMember, *phSmartlist);
Parameter | Data Type | Description |
---|---|---|
hOutline | ESS_HOUTLINE_T | Outline handle (Edit mode only) |
hMember | ESS_HMEMBER_T | Outline member handle |
*phSmartlist | ESS_HSMARTLIST_T | Returns the associate Text List (SmartList) handle |
Return Value
Returns:
0—If successful
*phSmartlist contains return value.
Error number—If unsuccessful
*phSmartlist is NULL.
Example
void TestGetMemberSmartList()
{
ESS_STS_T sts = ESS_STS_NOERR;
ESS_HOUTLINE_T hOutline = ESS_NULL;
ESS_OBJDEF_T Object;
ESS_HMEMBER_T hMember;
ESS_HSMARTLIST_T hSmartList;
memset(&Object, '\0', sizeof(Object));
Object.hCtx = hCtx;
Object.ObjType = ESS_OBJTYPE_OUTLINE;
Object.AppName = szAppName;
Object.DbName = szDbName;
Object.FileName = szFileName;
/* Open outline */
sts = EssOtlOpenOutline(hCtx, &Object,
ESS_TRUE, ESS_TRUE, &hOutline);
/* Find member */
sts = EssOtlFindMember(hOutline, "Original Price",
&hMember);
/* Return SmartList associated with member */
sts = EssOtlGetMemberSmartList(hOutline, hMember,
&hSmartList);
/* Unlock object */
sts = EssUnlockObject(hCtx, Object.ObjType,
Object.AppName, Object.DbName, Object.FileName);
/* Close outline */
sts = EssOtlCloseOutline(hOutline);
}
See Also