HyperNext Studio

HyperNext Studio => Getting Started => Topic started by: TERII on August 18, 2016, 05:48:21 PM

Title: How do one Add a valut to a listboxt - ListAddRow function does not work ofr me.
Post by: TERII on August 18, 2016, 05:48:21 PM
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
Title: Re: How do one Add a valut to a listboxt - ListAddRow function does not work ofr me.
Post by: Malkom on August 18, 2016, 08:50:39 PM
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