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