Issues extracting text within a string

Comments

4 comments

  • Avatar
    Catharine Coleman

    python uses the syntax

    out1.IAG_Test1_Step3 = out1.IAG_Test1_Step1[:3]

     

    https://docs.python.org/2/library/string.html

    0
    Comment actions Permalink
  • Avatar
    Alex Cross

    Hi, 

    Thanks for your quick response. I'm now encountering:

    no viable alternative at input ';' Error in "ProcessRecords" at line "6", column "44" in text: out1.IAG_Test1_Step3 = out1.IAG_Test1_Step1[;3]

    The 3 does go green though so it seems like it's working? Test1_Step1 is a string field too.

    Thanks,

    Alex

    0
    Comment actions Permalink
  • Avatar
    Catharine Coleman

    My bad.. it was supposed to be a colon, not a semicolon. I've corrected it above

     

    0
    Comment actions Permalink
  • Avatar
    Alex Cross

    Thanks, I saw that and now I'm all sorted!

    0
    Comment actions Permalink

Please sign in to leave a comment.



Powered by Zendesk