    Contents  Index  Topic Contents
    Previous Topic: DAStatic Properties Relevant to DAVector3 Objects
    Next Topic: DATransform2 Class

> ## DAString Class

> Creates a DAString object. At any given time, the value of the object is a character string. This value can vary over time.

> This class inherits from the DABehavior class.

> - DAString Functions
> - Relevant Functions from the DAStatics Class

> ### DAString Functions

> AnimateProperty

> Extract

> ####

> AnimateProperty

> DAString Class

> Allows control properties to be animated (vary over time). This function forms fragments of script and passes them to the scripting engine on every frame. When the invoke parameter is FALSE, the property is set directly as shown in this fragment from the JScript sample in JScript\Templates\AnimatedProperties.html:

>     filterStr = filterStr.AnimateProperty("DropWave1.style.filter", "JScript", false, .1));

> If the invoke parameter is TRUE, then a function name should be specified in the string parameter (property) and is invoked as shown in this fragment from the same JScript sample:

>     filterMethod = getNumber().AnimateProperty("SetFilter", "JScript", true, .1);

> stringObj.AnimateProperty(
> property,
> language,
> invoke,
> update
> )

> ##### Parameters

> property
>   A string that is either the name of the property to animate or the name of a scripting function to invoke that will set the property.
> language
>   A string that is name of the scripting language.
> invoke
>   A boolean that determines if the property is set directly or if a function is invoked. If FALSE, the property is set directly. If TRUE, a function is invoked.
> interval
>   A double specifying how frequently the position is updated.

> ##### Return Values

> Returns the DAString object.

> ##### See Also

> AnimateControlPositionPixel

> ####

> Extract

> DAString Class

> Extracts the value of the stringObj, returning a String. This object must have a constant value.

> stringObj.Extract

> ##### Return Values

> Returns a String.

> ### Relevant Functions from the DAStatics Class

> The following functions are defined in the DAStatics class and are most relevant to objects of type DAString.

> lib.ConcatString(a, b)

> lib.DAString(string)

> © 1998 Microsoft Corporation. All rights reserved. Terms of Use.

> Top of Page