Page 1 of 1

change string in listbox (with API)

Posted: Tue May 27, 2003 5:00 pm
by Cor
For learning API.

I want to change a string in a listbox with API

I use the following

Sendmessage_ (#mylistbox,#LB_SETITEMDATA,0,"new string")

But I dont' succeed,

What I'am I doing wrong

I know PB does it with a PB command, but I want to learn API

any suggestions are welcome

Posted: Tue May 27, 2003 5:04 pm
by Pupil
have you tried:

Code: Select all

Sendmessage_ (GadgetID(#mylistbox),#LB_SETITEMDATA,0,"new string")

Posted: Tue May 27, 2003 6:16 pm
by Cor
Yes i tried,

Does not work.

Maybe i use the wrong command!!!!!

Posted: Tue May 27, 2003 10:06 pm
by Cor
Just found out

First delete item with #LB_DELETESTRING with current index then
insert string with #LB_INSERTSTRING