The WriteProperty function writes a value under a name to the PropertyBag object.
Syntax | ||||
WriteProperty(Name, Value, [DefaultValue]) | ||||
Return value | ||||
None | ||||
Parameter | ||||
Use |
Name |
Type |
Passing |
Description |
Required |
Name |
String |
ByVal |
A name under which a value is stored in the PropertyBag object |
Required |
Value |
Variant |
ByVal |
The value that is stored under the name |
Optional |
DefaultValue |
Variant |
ByVal |
A default value. If Value is the same as DefaultValue, the value is not stored in the PropertyBag object. |
Example:
Dim Bag1 As New TCEServer.PropertyBag
#Write some properties in the bag
Bag1.WriteProperty("Name1", "Adam")
Bag1.WriteProperty("Name2", "James")
Bag1.WriteProperty("Name3", "John")