+ Start a Discussion
Rakesh BoddepalliRakesh Boddepalli 

Winter '13 new string method isempty() syntax

Folks,

 

 

If you try using the isempty() function similar to the list and set methods  for strings then it will throw an error.

Instead use the below syntax

 

String st = 'Hello'; 
Boolean val= String.isEmpty(st);

 

 

Thanks,
Rakesh B

 

Best Answer chosen by Admin (Salesforce Developers) 
Rakesh BoddepalliRakesh Boddepalli

String st = 'Hello'; 
Boolean val= String.isEmpty(st);

All Answers

Rakesh BoddepalliRakesh Boddepalli

String st = 'Hello'; 
Boolean val= String.isEmpty(st);

This was selected as the best answer
indyindy

Rakesh,

 

Thanks for Sharing this.

 

 

 

--Indrasen

Chandan3955Chandan3955

Thanks..

BBeairdBBeaird
Yep, I was getting stuck on this, too. Thanks for the post!