8

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);

Raj
  • 1,698
  • 4
  • 22
  • 39

1 Answers1

22

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

Raj
  • 1,698
  • 4
  • 22
  • 39