This function will remove the current dialog from the NMP without triggering an event.
Input:
None.
Returns: INT
0
|
- Success.
|
-1
|
- Navigation interface is not open.
|
-2
|
- Error communicating with navigation device.
|
-4
|
- Dialog could not be removed as no dialog is currently shown.
|
-11
|
- This is not supported by the device (e.g. the device is not an NMP device).
|
-12
|
- Navigation interface is busy.
|
Declaration:
FUNCTION nmpRemoveDialog : INT;
Example:
INCLUDE rtcu.inc
PROGRAM test;
VAR
rc : INT;
BEGIN
...
rc := nmpRemoveDialog();
IF rc = 0 OR rc = -4 THEN
nmpShowDialog(type := 4, caption := "Drive?", message := "Do you want to drive?");
END_IF;
...
END;
END_PROGRAM;
|