You need to sign in to do that
Don't have an account?
kumar.apr10
getting Unexpected token '<' error
Hi,
I am getting unexpected toke '<' error in Row 1 column 5 position in open execute anonymous windows when I am trying to execute the below code
list<apex_invoice__c> listinv = new list<apex_invoice__c>;
listinv = [select name, id, apex_customer__r.name from apex_invoice__c];
for(apex_invoice__c objinv: listinv)
{
system.debug('name is: ' + objinv.apex_customer__r.name);
}
I am not sure what exactly the issue is. Can you please help me to correct the code?
Thanks,
Praveen
I am getting unexpected toke '<' error in Row 1 column 5 position in open execute anonymous windows when I am trying to execute the below code
list<apex_invoice__c> listinv = new list<apex_invoice__c>;
listinv = [select name, id, apex_customer__r.name from apex_invoice__c];
for(apex_invoice__c objinv: listinv)
{
system.debug('name is: ' + objinv.apex_customer__r.name);
}
I am not sure what exactly the issue is. Can you please help me to correct the code?
Thanks,
Praveen
You need to do it like constructor ()
All Answers
You need to do it like constructor ()