Question about selector

Hi all,
i’ve a selector like this:

< wnd app=‘collg.exe’ cls=‘Ct:Midframe’ isremoteapp=‘1’ title=‘processing of invoices: Market N°*’ />

I use the wildcard after N° because market N° may change every time i log in (is a citrix app).

My question is if it’s possible to store in a variable the number of market active during the session, i need that number, and how?

Thanks in advice

Do you mean like you would like get the value of the place where wildcard is used for a attribute
If so yes that’s possible
We can use GET ATTRIBUTE activity where we can mention the attribute name we want and get the output with a variable of type string that stores the value of that attribute

Kindly try this and let know for any queries or clarification
Cheers @andreus91

1 Like

Perfect,
‘processing of invoices: Market N°* is the header of this program, so i put GET ATTRIBUTE and indicate with cv the program, but what i have to write in attribute to take the numbero of market?

i put “title” in the attribute and get the string then i’ll go with string manipulation?

Exactly
Cheers @andreus91

1 Like

It works, but at last step i do this

ASSIGN
numMarket <-> arrayNumMarket(7)

I need the numMarket in integer but is not possible to assign a string to an integer variable, how can i do that?
Thanks

its like
Convert.ToInt32(yourstringvariable)

Cheers @andreus91

1 Like

Thanks a lot

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.