Skip to main content
Version: Next

cs

cs -> Function result

ParameterTypeDescription
Function resultObject🡐Class Store containing all classes of the current database

Description

The cs command returns a Class Store object containing all user classes defined in the current database or component. This command is necessary to instantiate an object from a user class.

Note: This command works in project databases only. In binary databases, cs returns an empty Class Store.

Example

You created the Polygon class:

  //Class: Polygon
 
 Class constructor
 var $1;$2 : Integer
 This.area:=$1*$2

Then, in a method, you can write:

 var $poly : Object
 $poly:=cs.Polygon.new(4;3)
  // {area:12}

See also

4D
Super