Question

I'm having problems using FindString(string str, string findStr, [int startIdx], [bool caseSensitive]). It fails to find the colon I'm looking for - keeps returning -1. Am I doing something wrong? (See attachment)


Badge


4 replies

Userlevel 2
Badge +17

Hi @angela, a possible reason is that an excess space exists between the comma and ":". Firstly make sure this.

@FindString(@Value(_date_recorded),":") -> OK: no excess spaces before and after the arguments
@FindString(@Value(_date_recorded), ":") -> Wrong: there is an excess space before the ":"
Badge

Hi @takashi,

There's no space there. I'm using:

@FindString(@Value(_date_recorded),":")

Badge

Never mind, it's working now and I have know idea why as all I did was restart the session!

Userlevel 1
Badge +21

Never mind, it's working now and I have know idea why as all I did was restart the session!

I have experienced similar intermittent results when using the AttributeManager.

Reply