Previous Document Next Document

Including queries in macros : Understanding the available query criteria


Understanding the available query criteria

Each object type that can be queried (see Understanding CQL) has a set of query criteria. Some of these criteria are common to several object types, while others are unique to a single object type.

Most of the supported object types can be queried by using the following criteria:

Query criteria
Description
object.IsNull()
Returns True if the object is a null object
object.IsNumeric()
Returns True if the object can be converted to a numeric value (that is, an integer or double object)
object.This()
Returns a copy of the object
object.ToBool()
Converts the current object to a Boolean value (True or False)
object.ToDouble()
Converts the value of the object to a double object
object.ToInt()
Converts the value of the object to an integer
object.ToString()
Converts the value of the object to a string
object.TypeName()
Returns a string containing the type name of the object

For information on all the query criteria that are supported by each object type, see the following topics:

 
 
 
 
 
 
 
 
 
 
 
 

 
Each supported object type lets you use the help method to list all of the query criteria that are available to that object type. For example, to list the criteria that are available to the int object type, you can evaluate the expression int.help.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.