function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Below is an example
List<sObject> lstSobj = Database.query('select id,firstname from contact limit 5');
for(sObject s : lstSobj)
{
Contact C = (Contact) s;
system.debug('*******'+C.id + '*******'+ c.FirstName);
}