Class TCasScriptInteger

Unit

Declaration

type TCasScriptInteger = class(TCasScriptValue)

Description

No description available, ancestor TCasScriptValue description follows
No description available, ancestor TCasScriptExpression description follows

Hierarchy

Overview

Methods

Public constructor Create(const AWriteable: boolean; const AValue: Int64); overload;
Public constructor Create(const AWriteable: boolean); 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); 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); overload; override;
 
Public destructor Destroy; override;
 
Public procedure AssignValue(Source: TCasScriptValue); override;
 
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;
 

Generated by PasDoc 0.16.0.