Object Operators

->

The -> operator selects a field or method from the object to the left. It is equivalent to the . (dot) operator in object-orientated languages.

The -> operator usually sits between a DataBasic Object (DBO) variable name and either a field or method name. These field and method names are treated as string literals even though they are not quoted. The difference is that methods are like functions and may be followed by an list of parameters enclosed within a pair of brackets, which allows the DataBasic compiler to differentiate between fields and methods; that is:

object->field
object->method(…)

See also

DataBasic Objects