Class TCasScriptInteger

Unit

Declaration

type TCasScriptInteger = class(TCasScriptValue)

Description

This item has no description.

Hierarchy

Overview

Methods

Public constructor Create(const AWriteable: boolean; const AValue: Int64); reintroduce; overload;
Public constructor Create(const AWriteable: boolean); reintroduce; overload; override;
Public destructor Destroy; override;
Public procedure AssignValue(Source: TCasScriptValue); override;
Public function PromoteToFloat: TCasScriptFloat;

Properties

Public property Value: Int64 read FValue write SetValue;

Description

Methods

Public constructor Create(const AWriteable: boolean; const AValue: Int64); reintroduce; overload;

Comfortable constructor to set initial Value. Note that the inherited constructor (without AValue parameter) is also fine to use, it will set value to zero.

Public constructor Create(const AWriteable: boolean); reintroduce; overload; override;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public procedure AssignValue(Source: TCasScriptValue); override;

This item has no description. Showing description inherited from TCasScriptValue.AssignValue.

Assign value from Source to Self.

Public function PromoteToFloat: TCasScriptFloat;

Returns this integer promoted to float.

This object is kept and owned by this TCasScriptInteger instance, so it's valid as long as this TCasScriptInteger instance is valid. This allows you to safely use this (since you may have to return PromoteToFloat as return value of some Execute expressions, so it desirable that it's valid object reference).

Properties

Public property Value: Int64 read FValue write SetValue;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.