MoveText

<< Click to Display Table of Contents >>

Manual > Control Reference > Basics > List box control > Methods >

MoveText


 

Move the contents of the current line to another line.

 


Syntax 1

MoveText(

         "index",

         index1,

         index2

         )

 

Move the contents of row Index1 to Index2.

 


Parameters

 

mode


Type:

character


"index"

 

index1


Type:

Number


The index of the source row (row number starting from 0).

 

index2


Type:

Number


The index of the row to move to (zero-based).

 


Syntax 2

 

MoveText(

         "inc",

         num        

         )

 

The contents of the currently selected line are moved to the line specified by the number of lines from the current position and inserted.

 


Parameters

 

mode


Type:

character


"inc"

 

num


Type:

Number


Specifies the number of rows to move from the currently selected row. A positive value moves down, a negative value moves up.

 


Syntax 3

 

MoveText(

         mode

         )

 

Moves the contents of the lines according to the mode specified.

 


Parameters

 

mode


Type:

character


"up" - Moves the currently selected row up one position.

"down" - Moves the currently selected row down one position.

"top" - Moves the currently selected row to the top.

"end" - Moves the currently selected lines to the end.

 


hmtoggle_plus1Explanation

 


reference