Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Data Types
  Integer
  Boolean
  WideString
  Variant
  Interface
  Single
  Double
  DateTime
  Color
Related Links:
  Remove
  VarObj
  Value
  Data
  CurRow
  Collection
  CurCell
  Value
  AddChild
  Add
  Find
  IndexOf
  Insert
  Find
  Item
  Get
  Put
  Access
  Add
  Sender
  Replies
  Attachments
  CCList
  BCCList
  Recipients
  GetField
  SetField
  GetField
  SetField
  IntVal
  FloatVal
  Format
  Join
  Abs
  Min
  Max
  Eval
  AddControl
  FindControl
  OpenWindow
  CreateObject
  Avg
  StDev
  FindFiles
  Open
  Item
  Item
  Lookup
  Locate
  Execute
  Data
  Get
  ValueChecked
  ValueUnchecked
  ValueGrayed
  DisplayChecked
  DisplayUnchecked
  DisplayGrayed
  Value
  Value
  Value
  Add
  Add
  Add
  Data
  AddChild
  AddChildFirst
  AddSibling
  InsertChild
  Item
  Data
  Value
  PushHead
  PushTail
  PopHead
  PopTail
  OptionExists
  OptionValue
Variant [[zApp_Type_Variant]] 
NOTE: This Design document is subject to change at any time.
A Variant or OLEVariant is a data type that can hold any other data type. This is the generic data type used in untyped languages such as Visual Basic Script. It is convenient for some properties or methods where different data types might achieve different effects. For example, when adding an object to a Collection object, if you add a WideString value, the collection can automatically perform some functions such as searching. But since the Add method of the Collection can take a Variant type, you can also pass a full COM Object to the Add method and store any mixed set of objects in a Collection, making it an extremely flexible data structure.

Automatic type conversion is typically used with Variant objects. For example, if you store a number in a Variant data object and then try to append this to a String value, the number will be automatically converted to a string and then appended. If the automatic type conversion fails, you will typically get a runtime error, so you should use the conversion routines in the zApp Core module for performing conversions such as String to Integer that might result in an error.

A Variant data type can also store an array, known as a Variant array. This is compatible with the array type in Visual Basic Script.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net