Help me with easy sentence

I need to write an IF statement.

I have a string value in the field.
For example "HELLO"

for instance IF in the field is "HE" or if it begins with "H" then do something. >

Comments

  • edited 10:45PM
    Which language do You speak
    I use query
    procedure TForm3.RzEdit6Change(Sender: TObject);
    begin
    dm.ADOQserv.SQL.Clear;
    dm.ADOQserv.close;
    dm.ADOQserv.sql.Text := 'SELECT * FROM service WHERE design LIKE  '+quotedStr(RzEdit6.Text+'%');
    dm.ADOQserv.Prepared;
    dm.ADOQserv.open;
    end;
    
    and this query is linked with dbgrid so the Use will see the result in dbgrid

Leave a Comment