SetActionURLA

Annotations and hotspot links

Description

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

Sets the target URL of the specified action.

Syntax

Delphi

Function DLSetActionURLA(InstanceID, ActionID: Integer; NewURL: PAnsiChar): Integer;

DLL

int DLSetActionURLA(int InstanceID, int ActionID, const char * NewURL);

Parameters

ActionIDAn ActionID as returned by the GetAnnotActionID, GetOutlineActionID or GetFormFieldActionID functions
NewURLThe new URL target

Return values

0The specified ActionID was not valid
1The action's target URL was set successfully