background image
<< Testcase - the return from GetText | Testcase - winclass.inc file >>
Testcase - Y2KRulesInherited
<< Testcase - the return from GetText | Testcase - winclass.inc file >>
204
User's Guide
8 G
ENERALIZING
A
T
ESTCASE
Testing applications that have been made Year 2000 compliant
You can also use the Y2KRules declaration to apply rules to individual child
controls. The Y2KRules construct applies the rule only to the control in
which it is declared. If you want to apply a rule to a control and all of its
children, use the Y2KRulesInherited construct.
Y2KRulesInherited
Y2KRulesInherited allows you to specify transformation rules selectively for
particular objects or classes. You must declare Y2KRulesInherited rules
within the declarations of specific objects or classes. The rule you specify
will apply to the object and all of its children. Rules set for specific child
controls override any rules they might inherit.
For example, if you want to specify the same Y2K transformation rule for all
text fields on a dialog, add the Y2KRulesInherited rule in the declaration for
the dialog. If you later want one of the text fields to apply a different
transformation rule, add a second Y2KRulesInherited rule in the declaration
for that text field. This rule will override the inherited one.
The syntax for setting Y2KRulesInherited is:
setting Y2KRulesInherited = "
rule" | NULL
You can declare Y2KRulesInherited as follows:
""
Applies date transformation rules you have defined
in Runtime Options.
If you have not enabled transformation rules in
Runtime Options, no transformations are applied.
"rule"
Applies rule globally to all objects in your
application, overriding all selective rules.
For information about how to specify rule, see the
description of the TransformDate function in the
online Help.
NULL
Disables all Y2K transformations.
setting Y2KRules =
Action
setting Y2KRulesInherited =
Action
""
Applies date transformation rules you have
defined in Runtime Options.
If you have not enabled transformation rules
in Runtime Options, no transformations are
applied.