DataBasic Reference > Statements and Intrinsic Functions > Special Methods > %New

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

%New Special Method (databasic_sp_method_new.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

%New Special Method

This method is used with a connection object to create an object on the language server and return a reference to it.

Syntax

%New(Class{, Parameterlist})

Syntax Elements

Class The Java class name of the object to be created.

Parameterlist

List of parameters required to initialise Class. 

Examples

Var = %New(String, "My string")

Create a String object and initialise it to "My string" on the default connection.

Var = SecondCon->%New(String, "My string")

Create a string object and initialise it to "My string" on connection SecondCon

See Also

Special Methods

%Class

%Array

RealityV15.1 (MoTW) Revision 7Comment on this topic