DotNetObject property indexer get method
WTSupported in traditional Synergy on Windows
|
|
|
|
value = object[index]
Arguments
object
An object returned by the DotNetObject constructor (if the indexer is used on the class) or some other indexed field, property, or method return type on which to use the indexer.
value
Returned with the value of the field as System.Object.
index
The value of the index to use, starting at 0.
Discussion
Calling the indexer get method is similar to getting the value of a member of a single-dimension array based on its index.
If the member contains a value instead of an object, the value will be returned following the rules in the Objects Returned for .NET Types table.
Index must be greater than or equal to 1 or less than or equal to the number of elements; otherwise, an $ERR_SUBSCR error will occur.
See Properties and indexers for more information about indexers.
Examples
The example below sets str to equal the string located at position 5 in dnObject (similar to an array).
str = dnObject[5]