Cloud Software Group, Inc. EBX®
Documentation > Developer Guide > EBX® Script > API
Navigation modeDocumentation > Developer Guide > EBX® Script > API

Unit default

The default unit. This unit is automatically included in a script.

Methods from this script can be called directly and do not require a uses statement.

Methods

instanceOf<type>(): type

Creates an object instance for a given type.

function isFalseOrNull(value: boolean): boolean

Returns true if value is false of null.

function isNotNull(value: any_type): boolean

Returns true if value is not null.

function isNull(value: any_type): boolean

Returns true if value is null.

function isTrueOrNull(value: boolean): boolean

Returns true if value is true or null.

instanceOf

instanceOf<type>(): type

Creates an object instance for a given type.

Example:

export function getValue(): typeof _ebx.record.OfficeAddress
begin
  var value := create<typeof _ebx.record.OfficeAddress>();
  value.Street := '4323 Broadway';
  value.City := 'New York';
  value.State := 'NY';
  value.Zip := '10019';
  value.Country := 'USA';
  return value;
end

Function Types :

type: the object type. Is mandatory. Some types are not supported such as those that can be created using literals (string, numbers...) or that can only be instantiated by EBX.

Return :

the new object. Is always the mutable version of the specified type.

Can be used in: 

isFalseOrNull

function isFalseOrNull(value: boolean): boolean

Returns true if value is false of null.

Parameters :

value: a boolean value.

Return :

true if value is null or false, or else false. Never returns null.

Can be used in: 

isNotNull

function isNotNull(value: any_type): boolean

Returns true if value is not null.

Parameters :

value a value of any type.

Return :

true if value is not null or else false. Never returns null.

Can be used in: 

isNull

function isNull(value: any_type): boolean

Returns true if value is null.

Parameters :

value a value of any type.

Return :

true if value is null or else false. Never returns null.

Can be used in: 

isTrueOrNull

function isTrueOrNull(value: boolean): boolean

Returns true if value is true or null.

Parameters :

value: a boolean value.

Return :

true if value is null or true, or else false. Never returns null.

Can be used in: 

Documentation > Developer Guide > EBX® Script > API