# COM\_get

Get property value from COM interface.

## Syntax

* v = get(h, propertyname)
* v = COM\_get(h, propertyname)
* v = h.propertyname

## Input argument

* h - a COM object.
* propertyname - a string: the property's name of COM object.

## Output argument

* v - a nelson variable.

## Description

The function returns the value of the property specified in the string, propertyname.

## Example

```matlab
e = actxserver('Excel.Application');
get(e, 'Path')
e.Path
```

## See also

[COM\_set](https://nelson-9.gitbook.io/nelson/markdown/en/com_engine/com_set).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
