Sets outline information.
Syntax
EsbOtlSetOutlineInfo (hOutline, pInfo) ByVal hOutline As Long pInfo As ESB_OUTLINEINFO_T
Parameter | Description |
---|---|
hOutline | Outline context handle. |
pInfo | Storage variable for outline information, allocated by the caller. |
Notes
Only some of the fields of the ESB_OUTLINEINFO_T structure are used to set information. See the "API Structures" section for more information.
Call EsbOtlGetOutlineInfo() to initialize the fields in the ESB_OUTLINEINFO_T structure.
If the fCaseSensitive flag in the ESB_OUTLINEINFO_T structure is changed from ESB_TRUE to ESB_FALSE, and this causes duplicate member names, the call fails.
Return Value
Returns 0 if successful; otherwise one of the following:
OTLAPI_BAD_OUTLINETYPE
OTLAPI_ERR_DUPLICATEALIAS
OTLAPI_ERR_CURTOOMANYDIMS
OTLAPI_ERR_ILLEGALTAG
OTLAPI_ERR_DUPLICATENAME
Example
Declare Function EsbOtlSetOutlineInfo Lib "ESBOTLN" (ByVal hOutline As Long, pInfo As ESB_OUTLINEINFO_T) As Long Sub ESB_OtlSetOutlineInfo() Dim sts As Long Dim Object As ESB_OBJDEF_T Dim hOutline As Long Dim Info As ESB_OUTLINEINFO_T Object.hCtx = hCtx Object.Type = ESB_OBJTYPE_OUTLINE Object.AppName = "Sample" Object.DbName = "Basic" Object.FileName = "Basic" sts = EsbOtlOpenOutline(hCtx, Object, ESB_YES, hOutline) 'call GetOutlineInfo() to fill structure If sts = 0 Then Info.fCaseSensitive = ESB_FALSE sts = EsbOtlSetOutlineInfo(hOutline, Info) End If End Sub
See Also