$ObjSetProperty

$ObjSetProperty

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

$ObjSetProperty

Set the properties of an ActiveX object.

Syntax

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

Parameters

Objectan object variable or formfield of type OLE
PropertyNamea string or an expression that evaluates to a string
PropertyValueone 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)

Warning

COM objects are being discontinued by Microsoft and may not be available in future releases of Zim-X.

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

pt_BRPortuguese