6
votes

I'm getting error "Error Error: AddIMRConroller Compile Error: Initial term of field expression must be a concrete SObject: LIST at line 21 column 23" from below line of code .

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

1
got the answer , I need to use size .Raj

1 Answers

20
votes

In salesforce , we need to use size() method instead of length . this is something different then Java :(