ListSetCell(listboxName As String, row As Integer, column As Integer, value As String)

 

Write to the cell of listbox listboxName, based on the row and column numbers passed.

  

 

Parameters:

 

Name

Type

Value

Description

listboxName

String

name

ScreenFieldName of the listbox to set the number of columns.

Ctrl+Click onto a listbox to retrieve its listboxName

(= ScreenFieldName).

row

Integer

0 - n

Index of row to insert new value.

row  is zero-based

column

Integer

0 - n

Index of column to insert new value.

column  is zero-based

value

String

Text

New contents for cell at coordinates row, cell of listbox

  

Available in:

 

WindowMain

WindowLink

YES

YES

 

 

Hint: You can find references to XojoScripts which make use of this function by sending the following SQL statement to the database:

Select id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%ListSetCell%'

 

Example XojoScript:

 

Dim lb As String = "imLB_evt_List3"

If  (ListCount(lb) > 0) And (ListColumnCount(lb) > 2) Then

 

// Change contents of cell at row 1, column 3

ListSetCell(lb,1,3,"This is a new value")

 

End If