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
{
for(Account acc : Trigger.new)
{
Account oldAccount = Trigger.oldMap.get(acc.ID)
if(acc.AccountNumber!=oldAccount.AccountNumber)
{
System.debug('Account number is changed');
System.debug('**Old Account Number :' + oldAccount.AccountNumber);
System.debug('**New Account Number :' + acc.AccountNumber);
acc.Type = 'prospect';
}
else
{
System.debug('number has not been changed');
acc.Type = 'other';
}
}
}
i got the error like:
Compile Error: unexpected token: 'trigger' at line 1 column 0