This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19.8
cs

cs 


 

cs -> Function result 
Parameter Type   Description
Function result  Object in Class Store containing all classes of the current database

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
 C_LONGINT($1;$2)
 This.area:=$1*$2

Then, in a method, you can write:

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



See also 

4D
Super

 
PROPERTIES 

Product: 4D
Theme: Language
Number: 1710

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R3

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)