Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0
Syntax
Code Block
languagenone
set type = anyObject.staticTypeOf();
SemanticsReturns the type of any object it has had at compile-time. To get the type the object has at run-time use the typeOf. typeOf() and staticTypeOf() may return the same type, though.
SubstitutablestypeCan be any variable or object attribute having the type String
anyObjectCan be any object.
Examples

Assume you have the following class structure:

A type Customer derives from a type Person and adds an additional attribute.

Now assume further you have an object of each class (aPerson and aCustomer) and the following action script:

Code Block
languagenone
set aPerson = aCustomer;

typeOfaPerson will be Customer :

Code Block
languagenone
set typeOfaPerson = aPerson.typeOf();

staticTypeOfaPerson will be Person , which is the type the object had originally been created with:

Code Block
languagenone
set staticTypeOfaPerson = aPerson.staticTypeOf();

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamelist_type_strings
nopaneltrue
PageWithExcerptINTERNAL:_designer_excerpts_asl
shouldDisplayInlineCommentsInIncludesfalse

rp
Panel
titleRelated Pages: