|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Arrays and Data-Structures > LST. - List Arrays > List-Management > LST. - Management |
MiniRobotLanguage (MRL)
LST.Show
Displays a Debugprint of the List and its content.
Intention
The LST.Show command displays a Debugprint of the list and its content. This is useful for debugging and verifying the contents of the list.
If P2 is given, a Messagebox asking to continue will be shown.
Illustration:
📦 List: [1, 2, 3, 4, 5]
🔑 Handle: $$LST
🔢 Debugprint: [1, 2, 3, 4, 5]
🔑 Messagebox: Continue?
Syntax
LST.Show|$$LST[|#]
Parameter Explanation
P1 - $$LST The handle of the list to display.
P2 - # (optional) A message to display in the Messagebox asking to continue.
Example
'***********************************
' LST.Show - Sample 1
'***********************************
LST.New|$$LST
LST.Append|$$LST|1
LST.Append|$$LST|2
LST.Append|$$LST|3
LST.Append|$$LST|4
LST.Append|$$LST|5
LST.Show|$$LST|#
LST.End|$$LST
'
'***********************************
' LST.Show - Sample 2
'***********************************
LST.New|$$LST|i
LST.Append|$$LST|100
LST.Append|$$LST|200
LST.Append|$$LST|300
LST.Append|$$LST|400
LST.Append|$$LST|500
LST.Show|$$LST|Continue?
LST.End|$$LST
'
'***********************************
' LST.Show - Sample 3
'***********************************
LST.New|$$LST|f
LST.Append|$$LST|1.1
LST.Append|$$LST|2.2
LST.Append|$$LST|3.3
LST.Append|$$LST|4.4
LST.Append|$$LST|5.5
LST.Show|$$LST|Continue?
LST.End|$$LST
'
Remarks
-
Limitations:
- The list must not be empty when using this command.
See also:
• LST.New