Changeset 13 for trunk/UDataTypes.pas


Ignore:
Timestamp:
Mar 17, 2015, 12:09:11 AM (10 years ago)
Author:
chronos
Message:
  • Modified: Now records are loaded from SQL database using SQL query. The query is parsed also by XML database client to load records from XML file.
  • Added: Packages Network and Synapse.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UDataTypes.pas

    r8 r13  
    1515    procedure Assign(Source: TValue); override;
    1616    function GetString: string; override;
     17    function SetString(Value: string): string; override;
    1718  end;
    1819
     
    2324    procedure Assign(Source: TValue); override;
    2425    function GetString: string; override;
     26    function SetString(Value: string): string; override;
    2527  end;
    2628
     
    3133    procedure Assign(Source: TValue); override;
    3234    function GetString: string; override;
     35    function SetString(Value: string): string; override;
    3336  end;
    3437
     
    3942    procedure Assign(Source: TValue); override;
    4043    function GetString: string; override;
     44    function SetString(Value: string): string; override;
    4145  end;
    4246
     
    4751    procedure Assign(Source: TValue); override;
    4852    function GetString: string; override;
     53    function SetString(Value: string): string; override;
    4954  end;
    5055
     
    129134end;
    130135
     136function TValueFloat.SetString(Value: string): string;
     137begin
     138  Self.Value := StrToFloat(Value);
     139end;
     140
    131141{ TFieldBoolean }
    132142
     
    188198end;
    189199
     200function TValueBoolean.SetString(Value: string): string;
     201begin
     202  Self.Value := StrToBool(Value);
     203end;
     204
    190205{ TValueInteger }
    191206
     
    199214begin
    200215  Result := IntToStr(Value);
     216end;
     217
     218function TValueInteger.SetString(Value: string): string;
     219begin
     220  Self.Value := StrToInt(Value);
    201221end;
    202222
     
    229249end;
    230250
     251function TValueDateTime.SetString(Value: string): string;
     252begin
     253  Self.Value := StrToDateTime(Value);
     254end;
     255
    231256{ TValueString }
    232257
     
    242267end;
    243268
     269function TValueString.SetString(Value: string): string;
     270begin
     271  Self.Value := Value;
     272end;
     273
    244274{ TFieldString }
    245275
Note: See TracChangeset for help on using the changeset viewer.