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

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

%Import Special Method (databasic_sp_method_import.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

%Import Special Method

This method is used with a connection object to import a Java package name space or a Java class name.

Syntax

%Import(PackageName)

%Import(ClassName)

Syntax Elements

PackageName The name of a package to import all classes from.
ClassName The name of a class to be imported. 

Examples

%Import(java.io)

Import all classes in the java.io package. This equivalent to the Java syntax:

import java.io.*;

The ".*" is optional, but if used the package must be enclosed in quotes - e.g. %Import("java.io.*")

SecondCon->%Import(java.io.File)

Import the java.io.File class to SecondCon.

See Also

Special Methods

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