Modify 方法

此頁沒有內(nèi)容條目
內(nèi)容

expandtri全部顯示

使用 Modify 方法可以更改組合框文本框控件的 FormatConditions 集合中 FormatCondition 對象的格式條件。

expression.Modify(Type, Operator, Expression1, Expression2)

expression    必需。返回“應(yīng)用于”列表中的一個對象的表達式。

Type   必需 AcFormatConditionType。

AcFormatConditionType 可以是下列 AcFormatConditionType 常量之一:

acExpression

acFieldHasFocus

acFieldValue

Operator   可選 AcFormatConditionOperator

AcFormatConditionOperator 可以是下列 AcFormatConditionOperator 常量之一:

acBetween 默認

acEqual

acGreaterThan

acGreaterThanOrEqual

acLessThan

acLessThanOrEqual

acNotBetween

acNotEqual

如果參數(shù) type 是 acExpression,則忽略 operator 參數(shù)。如果將該參數(shù)留空,則假定為默認常量 (acBetween)。

Expression1     可選 Variant 型。與條件格式的第一部分相關(guān)的 Variant 值或表達式??梢允?/span>常量值或字符串值。

Expression2     可選 Variant 型。當 operator   參數(shù)為 acBetweenacNotBetween 時,與條件格式的第二部分相關(guān)的 Variant 值或表達式(否則,忽略該參數(shù))。可以是常量值或字符串值。