GetBlockNameA

Blocks, Interaction

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetBlockName and string arguments are interpreted using the current SetAnsiMode code page

Returns the name of a template block, which is the first segment of its contents string

Syntax

Delphi

Function DLGetBlockNameA(InstanceID, Page, BlockIndex: Integer): PAnsiChar;

DLL

const char* DLGetBlockNameA(int InstanceID, int Page, int BlockIndex);

Parameters

PagePage number
BlockIndex1-based block index on that page

Return values

Block name, or an empty string when the index is out of range

See also

GetBlockType, GetBlockRect, GetBlockProperty, AddBlock