home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
Chip_2000-02_cd.bin
/
zkuste
/
Delphi
/
navody
/
tt
/
objvm.exe
/
UNITS
/
VarLangValue.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-06-26
|
2KB
|
69 lines
unit VarLangValue;
interface
uses LangValue;
{ Variant value }
type TVarLangValue=class(ILangValue)
protected
Value:Variant;
function rdAsInteger:integer;override;
procedure wrAsInteger(a:integer);override;
function rdAsBoolean:boolean;override;
procedure wrAsBoolean(a:boolean);override;
function rdAsVariant:variant;override;
procedure wrAsVariant(a:variant);override;
function rdAsFloat:Extended;override;
procedure wrAsFloat(a:Extended);override;
function rdAsString:string;override;
procedure wrAsString(a:string);override;
public
function CreateEqu:ILangValue;override;
end;
implementation
function TVarLangValue.rdAsInteger;
begin
Result:=Value;
end;
procedure TVarLangValue.wrAsInteger;
begin
Value:=a;
end;
function TVarLangValue.rdAsBoolean;
begin
Result:=Value;
end;
procedure TVarLangValue.wrAsBoolean;
begin
Value:=a;
end;
function TVarLangValue.rdAsVariant;
begin
Result:=Value;
end;
procedure TVarLangValue.wrAsVariant;
begin
Value:=a;
end;
function TVarLangValue.rdAsFloat;
begin
Result:=Value;
end;
procedure TVarLangValue.wrAsFloat;
begin
Value:=a;
end;
function TVarLangValue.CreateEqu;
begin
Result:=TVarLangValue.Create(Owner);
Result.AsVariant:=AsVariant;
end;
function TVarLangValue.rdAsString;
begin
Result:=Value;
end;
procedure TVarLangValue.wrAsString;
begin
Value:=a;
end;
end.