Getting or Setting Properties of Developer Studio Objects
Home Page (Objects) | Overview | FAQ | Reference
Developer Studio objects have a variety of properties. For example, a TextWindow or Window object has a Caption property that indicates the caption of a window. Additionally, a TextWindow or Window object has a Height property that indicates the height of a window.
Some properties are read-only, whereas others are read/write. This means you can only get the values of some properties, whereas you can get or set the values of others.
For example, you can only get the value of the Caption property, as shown in the following example.
Dim X
X = ActiveWindow.Caption
Alternatively, you can get or set the value of the Height property. For example, you can set the value of the Height property to 10, as shown in the following example.
ActiveWindow.Height = 10
For more information about properties, see the property descriptions, and for more examples see Using the Sample Macros provided with Developer Studio.