Get Access to the second element in a collection Index does not work

  • 22 January 2021
  • 1 reply
  • 8 views

Hello together,

 

I have the following string [Lastname];[Firstname] and I want to extract the Firstname, but when I use the index to retrieve it from the collection varIndex1 with the value 1.

But If I want use this I get an error message. The Index with 0 works.

 

Is it a bug? Would be a regex an alternative for that? E.g. remove the first string up to the ;

 

Who would this work?

 

Best regards

 

Matthias


1 reply

Badge +7
Hi,

What is the result you get when you use the Index 0 variable? If it's a string-object containing [Lastname];[Firstname]-combination, I would suggest to use a RegEx with a 'Split'-action on that outcome to split the first- and lastname.

Reply