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
If i have a generic object returned from a function is there a APEX function to determine the type (Boolean, String, List, Set, etc) from the function?
you use the instanceof keyword such as:
String s = 'Hello'; Object o = s; If ( o instanceof String ) {}
you can use this for primitive data types as well as classes
There are describe methods by which you can get all the details.
Example:
system.debug('Datatype of Name is : '+Account.Name.getDescribe().getType());
For more view : Describe Method Details
you use the instanceof keyword such as:
you can use this for primitive data types as well as classes
All Answers
There are describe methods by which you can get all the details.
Example:
For more view : Describe Method Details
you use the instanceof keyword such as:
you can use this for primitive data types as well as classes