Jump to content
Sign in to follow this  
ZNorQ

Listbox / combo manipulation

Recommended Posts

I'm a frequent user of lbSetValue, lbSetData, lbSetColor, etc., but I can't seem to find a function for manipulating text element (ie. lbSetText, which doesn't work).

Anyone know if there is one, or do I have to use lbDelete and then lbAdd it with the new text..?

ZNorQ

Share this post


Link to post
Share on other sites

Yes just overwrite them, you do not have to delete them first just overwrite them with lbAdd.

Share this post


Link to post
Share on other sites

Oh? How do I do that? I'm used to using..

_theIndex = myLISTBOX lbAdd "Some element";

.

Does this mean that I can use the following statement;

myLISTBOX lbAdd [_theIndex, "Some element"];

(@Work in the time of writing, so I can't check this...)

ZNorQ

Share this post


Link to post
Share on other sites

I am also lacking the lbSetText command. Haven't been able to figure out how to overwrite elements using lbAdd - just managed to add an element at the end of the list. Any suggestions?

p.s. My apologies for reviving this thread, but I figured it would be better than opening a new one with the same question.

Share this post


Link to post
Share on other sites
createDialog "the_dialog";
waitUntil {!isNull (findDisplay 12345)};
_index = lbAdd [1234, "Big Gun $500"];

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×