Author Topic: How do one Add a valut to a listboxt - ListAddRow function does not work ofr me.  (Read 6587 times)

TERII

  • Newbie
  • *
  • Posts: 1
Hi everyone,   

Using a Window version:
I tried the only thing I could find from the Doc. to try to set some values to my existing Listbox by:
ListboxAddRow 1,1

But still it does not work.

I can add (empty) lines, rows, define new columns. but I can NOT enter a single value, text or number in any of the rows displayed...
How does this works ?  ??? ???
Tks for aby help
« Last Edit: August 18, 2016, 05:54:28 PM by TERII »

Malkom

  • Administrator
  • Newbie
  • *****
  • Posts: 460
  • Here to help you
Hi everyone,   

Using a Window version:
I tried the only thing I could find from the Doc. to try to set some values to my existing Listbox by:
ListboxAddRow 1,1

But still it does not work.

I can add (empty) lines, rows, define new columns. but I can NOT enter a single value, text or number in any of the rows displayed...
How does this works ?  ??? ???
Tks for aby help

Hi TERII

I'm not sure if you are getting a syntax error or if it just fails silently.

I've tried the ListboxAddRow command and it works but the value to be inserted must be text - either in quotes or a variable.
Unfortunately the docs don't make this clear.

Code: [Select]
Local s1

Put 'hello' into s1
ListboxAddRow 1,s1

ListboxAddRow 1,'1'

@ row = 3, col = 2
ListboxSetCellValue 1,3,2,'okay'


I've tried this on Windows 7 and it worked for me.

Malkom
« Last Edit: August 18, 2016, 08:53:24 PM by Malkom »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

 

anything