ActiveX.txt

This function library contains functions for ActiveX test objects and also registers these functions for use as methods with ActiveX test objects. To use the functions in this file, you must also include the Common.txt function library file in your application area.

Functions

Method GetDateProperty This function returns the date property of a specified ActiveX object.
Method GetTextProperty This function returns the text property of a specified ActiveX object.
GetValueProperty This function returns the value property of a specified ActiveX object.
OutputProperty This function returns the value of a specified property.
VerifyDate This function verifies if the date of an ActiveX object matches its expected date.
VerifyEnabled This function verifies if the specified ActiveX object is enabled.
VerifyProperty This function checks if the value of a property matches its expected value.
VerifyText This function verifies if the text in an ActiveX object matches its expected text.
VerifyValue This function checks if the value of an ActiveX object matches its expected value.

Back to top

GetDateProperty Function

Description

This function returns the date property of a specified ActiveX object.

Syntax

GetDateProperty (obj)

Parameter

Description

obj

A variable containing the object on which the function should be performed.

IMPORTANT

This function is registered for the following object: AcxCalendar.

Back to top

GetTextProperty Function

Description

This function returns the text property of a specified ActiveX object.

Syntax

GetTextProperty (obj)

Parameter

Description

obj

A variable containing the object on which the function should be performed.

IMPORTANT

This function is registered for the following objects: AcxComboBox and AcxEdit.

Back to top

GetValueProperty Function

Description

This function returns the value property of a specified ActiveX object.

Syntax

GetValueProperty (obj)

Parameter

Description

obj

A variable containing the object on which the function should be performed.

IMPORTANT

This function is registered for the following objects: AcxCheckBox and AcxRadioButton.

Back to top

OutputProperty Function

Description

This function returns the value of a specified property.

Syntax

OutputProperty (obj, PropertyName)

Parameter

Description

obj

A variable containing the object on which the function should be performed.

PropertyName

The name of the property.

Return Value

The value of the property.

IMPORTANT

This function is registered the following objects: ActiveX, AcxButton, AcxCalendar, AcxCheckBox, AcxComboBox, AcxEdit, AcxRadioButton, and AcxTable.

Back to top

VerifyDate Function

Description

This function verifies if the date of an ActiveX object matches its expected date.

Syntax

VerifyDate (obj, ExpectedDate)

Parameter

Description

obj

The object name and object type to be checked.

ExpectedDate

The expected date for the object.

Return Value

True or False.

IMPORTANT

This function is registered for the following object: AcxCalendar.

Back to top

VerifyEnabled Function

Description

This function verifies if the specified ActiveX object is enabled.

Syntax

VerifyEnabled (obj)

Parameter

Description

obj

The object name and object type of the property to be verified.

Return Value

True if the object is enabled.

IMPORTANT

This function is registered the following objects: ActiveX, AcxButton, AcxCalendar, AcxCheckBox, AcxComboBox, AcxEdit, AcxRadioButton, and AcxTable.

Back to top

VerifyProperty Function

Description

This function checks if the value of a property matches its expected value.

Syntax

VerifyProperty (obj, PropertyName, ExpectedValue)

Parameter

Description

obj

The object name and object type of the property to be checked.

PropertyName

The name of the property to be checked.

ExpectedValue

The expected value of the property.

Return Value

True or False.

IMPORTANT

This function is registered the following objects: ActiveX, AcxButton, AcxCalendar, AcxCheckBox, AcxComboBox, AcxEdit, AcxRadioButton, and AcxTable.

Back to top

VerifyText Function

Description

This function verifies if the text in an ActiveX object matches its expected text.

Syntax

VerifyText (obj, ExpectedText)

Parameter

Description

obj

The object name and object type to be checked.

ExpectedText

The expected text for the object.

Return Value

True or False.

IMPORTANT

This function is registered for the following objects: AcxComboBox and AcxEdit.

Back to top

VerifyValue Function

Description

This function checks if the value of an ActiveX object matches its expected value.

Syntax

VerifyValue (obj, ExpectedValue)

Parameter

Description

obj

The object name and object type to be checked.

ExpectedValue

The expected value of the object.

Return Value

True or False.

IMPORTANT

This function is registered for the following objects: AcxCheckBox and AcxRadioButton.

Back to top

See also: