matim wrote:if i wrote label1.text = A[0] , the label shows the letter A[0] not my value <screen id =2>
Try the command that does the same, I think it is WDLabelSetText,ID,TEXT.
matim wrote:2 -if i have a variable name B with the value 3 by example.
i have to put this value in my array : <screen id = B>
i expect that WD change the B text with the value 3
i need to see <screen id = 3> in my A array but i got <screen id = B>
This won't work. You have to use something like this to make the replacement:
Sometimes you need to execute dynamically generate code. The 'classic' way to do it is to have a TextBox and use WDTextBoxAppend,ID,TEXT. Then use WDTextBoxexecuteasscript to run it. If you need a comma then you should create a variable named "comma" and then give it the value "," (without quotes).
For example
WDTextboxAppend,1,VSetArrayValue
WDTextboxAppend,1,comma
WDTextboxAppend,1,array_var
WDTextboxAppend,1,comma
WDTextboxAppend,1,screen id =
WDTextboxAppend,1,B # <----- This will be 3 in the textbox, because it is alone. If you put not "B" and use "= B" instead then it wont change B to 3
WDTextboxExecuteAsScript,1
WDTextboxClear,1
Similar is possible using variables instead of the textbox.