Skip to main content
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)


Forum|alt.badge.img

4 replies

takashi
Influencer
  • April 1, 2017

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

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

Forum|alt.badge.img
  • Author
  • April 3, 2017

Hi @takashi,

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

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


Forum|alt.badge.img
  • Author
  • April 3, 2017

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


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • April 3, 2017
angela wrote:

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.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings