$ObjSetProperty

Set the properties of an ActiveX object.

Syntax

$ObjSet[Property] (Object, PropertyName, <<PropertyValue>>)

Parameters

Object

an object variable or formfield of type OLE

PropertyName

a string or an expression that evaluates to a string

PropertyValue

one or more strings, expressions or variables

Return Value

Returns a result of TRUE if successful.

Comments

This syntax can be used to set basic or extended properties of an ActiveX component.

Example

Assume you have a form called treeview with a treeview component on it called tree.

Assume vResult is a variable of type char 1. The syntax to direct the Treeview component to display lines among sibling nodes, parent nodes and the root node is

let vResult = $ObjSetProperty (treeview.tree, 'linestyle', 1)

 

Related Topics