8

I'm getting this error from the line of code below:

Error: AddIMRConroller Compile Error: Initial term of field expression must be a concrete SObject: LIST at line 21 column 23

string[] str1 = imrTable.split('\r\n');
    System.debug( str1.length); 
0

1 Answer 1

22

In Salesforce we need to use size() method instead of the length property. This is something different then Java.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.