Set value in array index

uiautomation

#1

HI,

I want to set value(string) in array index. How can I add in array index value?

Like: I have secondSplit[] array, and I want to add value on seconSplit[0]=“string”.

I had tried like this,
image

Is there any solution for this?

thanks.


#2

Hi @sams,

Refer this

if you are already declared the array length
you can directly use assign activity to update the value
arr(3)="yourvalue"

Regards,
Arivu


#5

any solution for this?


#6

Hi @sams,

The error clearly saying the value is null
not created the object of the variable.

can you send the screenshot of the Assign activity and variables

Regards,
Arivu


#7

Hi @arivu96,


#8

Just a sidenote, but please reconsider the amount of nested activities you have in 1 workflow - that screenshot is frightening a little bit.
I’d highly recommend getting familiar with invokes (f.e. via Academy Level 3) and splitting it up to subflows, as I can with a fair bit of certainty say that you will have problems with execution logic in this.