navMessageReplyDefine (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

MX2, AX9, CX1 pro/flex/warp, SX1, MX2 turbo/encore/warp, AX9 turbo, NX-200, NX-400, NX-900, LX2, LX4, LX5

Firmware version:

1.40 / 1.00.00

Nav. API level:

1


This function will define a reply for a text message.

If a reply with the same ID already exists, the text of the reply is updated.

Up to 200 message replies can be defined.

 

 

Input:

id : INT

Unique ID to identify this reply.

 

text : STRING

The text that is displayed for this reply. (Max. 49 characters)

 

 

Returns: INT

0

- Success.

-1

- Navigation interface is not open.

-2

- Error communicating with navigation device.

-4

- The navigation device rejected the command.

-12

- Navigation interface is busy.

 

Declaration:

FUNCTION navMessageReplyDefine : INT;
VAR_INPUT
  ID   : INT;
  text : STRING;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM NavigationExample;
 
BEGIN
  ...
  navMessageReplyDefine(id := 20, text := "On the way");
  navMessageReplyDefine(id := 21, text := "Are you kidding?");
  navMessageReplyDefine(id := 22, text := "I dont feel so good");
  ...
END;
END_PROGRAM;