2.5. tsGetErrorFunction

Syntax

Pascal

function tsGetErrorFunction: tsEnum;

C/C++

tsEnum tsGetErrorFunction();

Description

Returns the id of the function from which the current error code was set. After the call and reset it to TS_NO_ERROR. If you need the error codes several times you must cache the error code in an local variable.

[Note] Note

There is no chance to resolve an string with the functionname from this constants.

Return Values

Constname Value of Const Function / Description
TS_NO_FUNC 0x0000 No error. So no function. All is fine
TS_FUNC_INIT 0x4001 tsInit
TS_FUNC_QUIT 0x4002 tsQuit
TS_FUNC_SET_PARAMETER 0x4003 tsSetParameter
TS_FUNC_GET_PARAMETER 0x4004 tsGetParameter
TS_FUNC_GET_STRING 0x4005 tsGetString
TS_FUNC_CONTEXT_CREATE 0x4006 tsContextCreate
TS_FUNC_CONTEXT_DESTROY 0x4007 tsContextDestroy
TS_FUNC_CONTEXT_BIND 0x4008 tsContextBind
TS_FUNC_FONT_CREATE_CREATOR 0x4009 tsFontCreateCreator
TS_FUNC_FONT_DESTROY 0x400A tsFontDestroy
TS_FUNC_FONT_BIND 0x400B tsFontBind
TS_FUNC_FONT_ADD_CHAR 0x400C tsFontAddChar
TS_FUNC_FONT_DELETE_CHAR 0x400D tsFontDeleteChar
TS_FUNC_FONT_SET_CHAR_PARAMETER 0x400E tsFontSetCharParameter
TS_FUNC_FONT_GET_CHAR_PARAMETER 0x400F tsFontGetCharParameter
TS_FUNC_POST_ADD_FILL_COLOR 0x4010 tsPosAddFillColor
TS_FUNC_POST_ADD_FILL_PATTERN 0x4011 tsPostAddFillPattern
TS_FUNC_POST_ADD_BORDER 0x4012 tsPostAddBorder
TS_FUNC_POST_ADD_SHADOW 0x4013 tsPostAddShadow
TS_FUNC_POST_ADD_CUSTOM 0x4014 tsPostAddCustom
TS_FUNC_POST_DELETE 0x4015 tsPostDelete
TS_FUNC_POST_ADD_USAGE 0x4016 tsPostAddUsage
TS_FUNC_POST_CLEAR_USAGE 0x4017 tsPostClearUsage
TS_FUNC_STRING_ANSI_TO_WIDE 0x4018 tsStringAnsiToWide
TS_FUNC_STRING_ALLOC 0x4019 tsStringAlloc
TS_FUNC_STRING_DISPOSE 0x401A tsStringDispose
TS_FUNC_TEXT_BEGIN_BLOCK 0x401B tsTextBeginBlock
TS_FUNC_TEXT_END_BLOCK 0x401C tsTextEndBlock
TS_FUNC_TEXT_COLOR 0x401D tsTextColor
TS_FUNC_TEXT_OUT 0x401E tsTextOut
TS_FUNC_TEXT_GET_WIDTH 0x401F tsTextGetWidth
TS_FUNC_TEXT_GET_HEIGHT 0x4020 tsTextGetHeight
TS_FUNC_IMAGE_CREATE 0x4021 tsImageCreate
TS_FUNC_IMAGE_DESTROY 0x4022 tsImageDestroy
TS_FUNC_IMAGE_LOAD 0x4023 tsImageLoad
TS_FUNC_IMAGE_ASSIGN_FROM 0x4024 tsImageAssignFrom
TS_FUNC_IMAGE_NEW 0x4025 tsImageNew
TS_FUNC_IMAGE_GET_INFO 0x4026 tsImageGetInfo
TS_FUNC_IMAGE_SCANLINE 0x4027 tsImageScanline
TS_FUNC_IMAGE_RESIZE 0x4028 tsImageResize
TS_FUNC_IMAGE_BLEND 0x4029 tsImageBlend
TS_FUNC_IMAGE_BLUR 0x402A tsImageBlur
TS_FUNC_IMAGE_FILL_COLOR 0x402B tsImageFillColor
TS_FUNC_IMAGE_FILL_PATTERN 0x402C tsImageFillPattern

Table 2.1. Errorfunction codes