Log.info reports a "closure" where the line before it reported a string?

@JohnRob I took your code from your other post and loaded it in my Dev hub. Again modified your String sData assignment to:

String sData = DescList[index]

Logging worked. Those curly brackets shouldn't be there and to get an element from an array/list you always use [ ]:

1 Like