Get Index Position of Last String
Application Type
Traditional Web

Dear All,


On my case, I want to get last index position of string text

Example:

Old String: "Impossible" -> "e" Index in position 9

How to return index 9


Thanks,

Kane

mvp_badge
MVP
Solution

Sorry my mistake, I incorrectly read that you wanted the character at position 9.

If you want to know the position of the last character use Length(string)-1

mvp_badge
MVP

Hi,

You can use substring build in function for that.

Regards,

Daniel

Hi,


That function return text not integer

Thanks.

mvp_badge
MVP
Solution

Sorry my mistake, I incorrectly read that you wanted the character at position 9.

If you want to know the position of the last character use Length(string)-1

Hi,

The function already exist in the text extension


(String_LastIndexOf)

you can take reference of this link,

https://www.outsystems.com/forums/discussion/8697/substr-and-index/

Kind Regards,

Ajit kurane.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.