getcurrentlocationindex

The getcurrentlocationindex function returns a string containing the colon-separated format of the current location index.

Syntax

Use this syntax:


getcurrentlocationindex()

Example

String[50] levels;
levels = "";
levels = getcurrentlocationindex();
messagebox(levels,0);

The messagebox() call writes out the value of levels in the tx.log:

[2013-03-29 13:52:28.495] ALL 000640100001
TRANSLATION.TRANSLATION_RULES.LOG_StringOpcodes_msg1 01:01:01 
[2013-03-29 13:52:28.496] ALL 000640100001
TRANSLATION.TRANSLATION_RULES.LOG_StringOpcodes_msg1 01:01:02
[2013-03-29 13:52:28.496] ALL 000640100001 
TRANSLATION.TRANSLATION_RULES.LOG_StringOpcodes_msg1 01:01:03
[2013-03-29 13:52:28.497] ALL 000640100001 
TRANSLATION.TRANSLATION_RULES.LOG_StringOpcodes_msg1 02:01:01
[2013-03-29 13:52:28.498] ALL 000640100001
TRANSLATION.TRANSLATION_RULES.LOG_StringOpcodes_msg1 02:01:02 
[2013-03-29 13:52:28.499] ALL 000640100001 
TRANSLATION.TRANSLATION_RULES.LOG_StringOpcodes_msg1 02:01:03
[2013-03-29 13:52:28.499] ALL 000640100001
TRANSLATION.TRANSLATION_RULES.LOG_StringOpcodes_msg1 02:01:04 

The actual value of level is the last portion. For example:

01:01:01
01:01:02
01:01:03

The function reports what level and what iteration of the group is currently being accessed.

See the Map Editor documentation for information on nesting levels and iterations.