Xbasic

Namespaces

Syntax

Namespace_Name :: Type_Name [ :: Type_Name [... ]]

Description

A Namespace is a collection of data types. Data types are organized into 5 groups.

Group
Definition
Class
  • Method(s)
  • Property(s)
  • Event(s)
Simple
  • A - Any
  • B - Blob
  • C - Character
  • D - Date
  • L - Logical
  • N - Numeric
  • T - Time
  • U - Collection
  • Y - Short Time
Pointer

P - a reference to an instance

Function Pointer

F - a reference to a function

Enumeration

A set of named values. See Enumeration Example below.

Enumeration Example 

The following is an example of an enumeration:

dim t as SQL::TableType
t = View ' the name of the SQL::TableType enumeration
? t
= 1 'the numeric value of the enumeration

Another Example 

The default Alpha Anywhere namespace provides access to the data types, functions, and methods documented in Variable Data Types, Xbasic Functions Listed Alphabetically and Xbasic Methods Listed Alphabetically.

The SQL namespace provides access to a rich group of classes that allow you to read and write to other databases.

dim conn as SQL::Connection
dim expr as SQL::Query::ValueExpression
Many namespaces, classes, and enumerations are reserved for internal use only.

See Also