You need to sign in to do that
Don't have an account?
![Robert Wambold 10 Robert Wambold 10](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Why can't I extract the first character of Account.Name???
Hi All,
Thought this would be easy, but I cannot get past this Error.
Thanks in advance.
Robert
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi All,
Thought this would be easy, but I cannot get past this Error.
Thanks in advance.
Robert
All Answers
example:
for (Account acc : LstAccts) {
String firstLttr = acc.Name.subString(0,1);
// do your logic
}
Here extracting the first character from the string may be useful for other developers as well so if you write a generic method that would be good. so that other developers can reference that method to do the same logic.