1
0
mirror of synced 2024-11-15 03:23:51 +00:00
x2xmldatabinding/Units/XMLDataBindingHelpers.pas

37 lines
729 B
ObjectPascal
Raw Normal View History

2008-02-20 06:52:00 +00:00
unit XMLDataBindingHelpers;
interface
uses
System.Classes;
2008-02-20 06:52:00 +00:00
type
TNamedFormatWriter = class(TStreamWriter)
2008-02-20 06:52:00 +00:00
public
procedure WriteNamedFmt(const ASource: String; const AParams: array of const);
procedure WriteLineNamedFmt(const ASource: String; const AParams: array of const);
2008-02-20 06:52:00 +00:00
end;
implementation
uses
SysUtils,
X2UtNamedFormat;
2008-02-20 06:52:00 +00:00
{ TNamedFormatWriter }
procedure TNamedFormatWriter.WriteNamedFmt(const ASource: String; const AParams: array of const);
begin
Write(NamedFormat(ASource, AParams));
end;
procedure TNamedFormatWriter.WriteLineNamedFmt(const ASource: String; const AParams: array of const);
2008-02-20 06:52:00 +00:00
begin
WriteLine(NamedFormat(ASource, AParams));
2008-02-20 06:52:00 +00:00
end;
end.
2008-03-09 20:36:27 +00:00