|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Arrays and Data-Structures > ARS. - Array's > !ARS. - Array Operations > ARS. - Array Operations |
MiniRobotLanguage (MRL)
ARS.Show
Displays a Debugprint of the array and its content.
Intention
The ARS.Show command displays a Debugprint of the array and its content. This is useful for debugging and verifying the contents of the array.
If P2 is given, a Messagebox asking to continue will be shown.

The debugprint in the console window.

The Messagebox to prevent the console window from immediately dissapearing.
Illustration:
📦 Array: [1, 2, 3, 4, 5]
🔑 Handle: $$ARR
🔢 Debugprint: [1, 2, 3, 4, 5]
🔑 Messagebox: Continue?
Syntax
ARS.Show|$$ARR[|#]
Parameter Explanation
P1 - $$ARR - (Variable)
The handle of the array to display.
P2 - # (optional) - (String) - use "#"
A message to display in the Messagebox asking to continue.
Example
'***********************************
' ARS.Show - Sample 1
'***********************************
ARS.New|$$ARR
ARS.Add|$$ARR|1
ARS.Add|$$ARR|2
ARS.Add|$$ARR|3
ARS.Add|$$ARR|4
ARS.Add|$$ARR|5
ARS.Show|$$ARR
ARR.End|$$ARR
'
'***********************************
' ARS.Show - Sample 2
'***********************************
ARS.New|$$ARR|i
ARS.Add|$$ARR|100
ARS.Add|$$ARR|200
ARS.Add|$$ARR|300
ARS.Add|$$ARR|400
ARS.Add|$$ARR|500
ARS.Show|$$ARR|'Continue?'
ARR.End|$$ARR
'
'***********************************
' ARS.Show - Sample 3
'***********************************
ARS.New|$$ARR|f
ARS.Add|$$ARR|1.1
ARS.Add|$$ARR|2.2
ARS.Add|$$ARR|3.3
ARS.Add|$$ARR|4.4
ARS.Add|$$ARR|5.5
ARS.Show|$$ARR|'Continue?'
ARR.End|$$ARR
'
Remarks
-
Limitations:
-
See also:
•