[yunqa.de] AnsiString vs. WideString

Hello

I'm a semi-newbie Delphi newbie. I'm going through the samples to learn how to use DISQLite, and I noticed in "Demos\DISQLite3_StringGrid\DISQLite3_StringGrid_fMain.pas" the use of AnsiStrin and WideString:

procedure TfrmStringGrid.btnUpdate_Click(Sender: TObject);
var
  s: AnsiString;
  SQL: WideString;
  Stmt: TDISQLite3Statement;
begin
  s := StringGrid.Cells[c, r];
if InputQuery('Update', Format('Enter new %s:', [ColumnNames[c]]), s) then begin
      SQL := Format(UpdateSql, [ColumnNames[c]]);

Is there a reason for using both data types?

Thank you.

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
http://www.freelists.org/list/yunqa



Other related posts: