Skip to content
General IRCd

Treeview / Xdid().text

A TG007 community discussion started by exeCutive.

Discussion 3 posts
Page 1 of 1
Open
Topic #15963 · 3 published posts · 1,910 views
hello
I have a treview with dcx, which have the following list:
1 item
sub item 1
item 2
sub item 2

but the identifier $ xdid (). text does not work.

$ xdid (treeview, 1). text = Item 1
$ xdid (treeview, 2). text = Item 2
$ xdid (treeview, 3). text = Item 2 --- >> should show the error!

Any solution for this?
Regards

 

First of all it would be nice to have all the code.

 

Second, why do you have spaces between $ and xdid and . and text? Not good.

 

Third, you will have an additional identifier inside of the (). As stated in the help file, you will need tree and branch. The parameter you are using as 1 2 and 3 should be the control item number. So if you created the TREEVIEW with XDIALOG (I think) then the first # would be the number you used.

 

Syntax:

$xdid(dialog, ID, PATH).text

Example:

$xdid(dcx, 4, 1 2).text

 

 

$xdid(treeview, 1, 1).text
$xdid(treeview, 1, 2).text
$xdid(treeview, 1, 3).text

 

^^ Is more of the format.. And Finally, $xdid().text only RETURNS a value. to SET a value (as you are doing in =), you need to do a xdid command. Read up on the docs and download a script like 'Dreams' for Buzzen to get an example.

Edited Apr 21, 2014 6:26 AM by Pablo

Stupidity is a metric of success.

Thanks for responding.

The errors you mention was my mistake in the translation to English.

Treeview
ITEM1
SUB-ITEM1
SUB-ITEM2
ITEM2
SUB-ITEM1
SUB-ITEM2

 

$xdid(treeview, ID, 1).text = ITEM1

$xdid(treeview, ID, 2).text = ITEM2
$xdid(treeview, ID, 3).text = ITEM2 > repeats item 2 indefinitely.

How can I solve that problem. ??

regards