Difference between revisions of "List"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(Syntax)
 
Line 3: Line 3:
  
 
* register1 = Register to store selection value
 
* register1 = Register to store selection value
* string = Text to add to list
+
* string = Message to display
 +
* See list of [[Special characters]]
  
 
==Use==
 
==Use==

Latest revision as of 14:04, 9 April 2021

Syntax

Syntax: list register1, string

  • register1 = Register to store selection value
  • string = Message to display
  • See list of Special characters

Use

Used to display a list of items and set the selection value to the specified register.

Example


100:     list R1, 'Monkey<cr>Magic' //add 2 items to a list 0:Monkey, 1:Magic
         switch_jmp R1, 2:101:102 //jump to function depending on selection
101:     window_msg 'You selected "Monkey".'
         winend 
         ret 
102:     window_msg 'You selected "Magic".'
         winend 
         ret 

Also see

switch_jmp, window_msg, winend, ret