$ObjSetProperty
Welcome to our Knowledge Base
Documentation | Blog | Demos | Support
< All Topics
Print
$ObjSetProperty
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Set the properties of an ActiveX object.
Syntax
$ObjSet[Property] (Object, PropertyName, <>)
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)
Warning
COM objects are being discontinued by Microsoft and may not be available in future releases of Zim-X.
Updated
ByJason Lee
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