# Object Functions

Property values can be accessed directly or by using a generic `set` or `get` method.

- A `get` function for each field in the object. For example, an Account object has a `get("Name")` function. This can be used instead of `  object.Field ` (for example, `account.Name`).
- A `set` function for each field in the object. For example, an Account object has a `set("Name)` function. This can be used instead of `  object.Field = value `.

## Examples

For example, you can get the value of the `Name` field from an Account using either of these methods:

- `account.get("Name")`
- `account.Name`
- `account["Name"]`

You can set the value of the `Name` field from an Account using either of these methods:

- `account.set("Name", "MyAccount");`
- `account.Name = "MyAccount";`
- `account["Name"]="MyAccount";`

**See Also**

- [Processing Results](/docs/platform/ajax/guide/sforce-api-ajax-results.md)
