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)

  • April 1, 2017
  • 4 replies
  • 85 views
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

takashi
Celebrity
  • 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),":") -> OK: no 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+48
  • Influencer
  • April 3, 2017

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.