You need to sign in to do that
Don't have an account?
Mack Dsoza
Custom Object
goalProfileList = new Goal_Profile__c[endYear - startYear];
Here Goal_Profile__c is my custom object but here what is happening...
Can we pass the paramenter in Goal_Profile__c custom object....
No, its two integers subtracted from each other. I'd imagine its creating an entry for every year between start and end.
All Answers
This is instantiating a list of Goal_Profile__c objects that contains (endYear - startYear) elements. The square brackets denote a list rather than passing parameters when instantiating an sobject.
Is it range of values ?
like [A-Z]...
So what it the benefits of doing this thing ?
No, its two integers subtracted from each other. I'd imagine its creating an entry for every year between start and end.
Thank you so much Bob...