Jump to content

Treeview / Xdid().text


exeCutive

Recommended Posts

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

 

Link to comment
Share on other sites

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 by Pablo
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...