• Emsegal
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

I am getting the above error message on a trigger. I have stripped the trigger way way down to make it easier to diagnose the problem.

 

Here is the complete trigger

 

 

trigger tryi on Contact (before update) {
    string gCode;
    string en;
    en='Segal';
    gCode=LEFT(en,2);
  }

 

and here is the complete error:

Error: Compile Error: Method does not exist or incorrect signature: LEFT(String, Integer) at line 5 column 11

 

But I know that LEFT exists, and I know that 'Segal' is a string, and I know that 2 is an integer. So what am I missing?

 

Thanks.