#1 2024-03-30 00:51:53

dqwjs126
Member
Registered: 2024-03-30
Posts: 3

TSynDBDataSet mOrmot1 to mOrmot2

mOrmot1:
    gProps := TSQLDBSQLite3ConnectionProperties.Create('test.db3', '', '', '');
    ds := TSynDBDataSet.Create(nil);
   
    ds.Connection := gProps;
    ds.CommandText := 'select * from watch';
    ds.Open;

    ds.First;
    while not ds.Eof do
    begin
      ShowMessage(ds.FieldByName('serverpath').AsString);
      ds.Next;
    end;

How to update to mOrmot2?

Offline

#2 2024-03-30 13:42:48

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: TSynDBDataSet mOrmot1 to mOrmot2

Offline

#3 2024-03-30 22:48:34

dqwjs126
Member
Registered: 2024-03-30
Posts: 3

Re: TSynDBDataSet mOrmot1 to mOrmot2

@ab,many thanks.

Offline

Board footer

Powered by FluxBB