Member Operator ('.')

The Member Operator is used to access members of an object or a structure.

Syntax

[StructureVariable | ObjectVariable.]MemberName

Where

 

Syntax Component

Description

ObjectVariable

Is a variable of data type Object, Variant, ControlClass, Class, or a Module name. Module name is a Program or System or Driver name. ControlClass or Class is defined in a COM Library Classes or Controls submodule.

MemberName

Can be a Property or a Method or a Structure Field.

Comments

If the object is of type Variant, it must have a VarType of vtUnknown or vtObject.

For Object or Variant, no checking is performed on the compile type to verify that the members exist. The result of the expression is always considered to be of Variant.

Unlike the Scope Resolution operator, members from any module can be used from any module. For example, a Driver can use the Program.Name.

Example

print stdnt.sName

See Also

Public Attribute, Scope Resolution Operator, VarType Procedure