LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  strFind for double quote character

    Employee
    Posted 02-02-2017 08:54

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Umbaugh

    What is the syntax for doing a strFind to find a double quote in a text string? strFind(field,""") does not work as the " is a restricted character.

    Text example - They said "Was incorrect", when correct.

    I would like to identify the position of the " in the text string.


  • 2.  RE: strFind for double quote character

    Employee
    Posted 02-02-2017 09:02

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: prasmussen

    You can use "\""

    For example:
    x = strFindI("They said \"Was incorrect\", when correct.","\"")
    emit x


  • 3.  RE: strFind for double quote character

    Employee
    Posted 02-02-2017 10:26

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Umbaugh

    Thank you. I also found that I could use the ascii character decimal of (34) in a variable to do the find.

    For example:
    a = chr(34)
    x = strFind("They said \"Was incorrect\", when correct.", a)