Jump to content

Lajos Juhász

Members
  • Content Count

    1073
  • Joined

  • Last visited

  • Days Won

    15

Posts posted by Lajos Juhász


  1. In order to work with jpg image format you must add the  jpeg unit to your uses.

     

    IF you add a TImage named imgName then you can write:

     

    imgName.Picture.LoadFromFile('D:\Delphi_11_Community\MyProjects\Dinobase\dino_images\'+ sName + '.jpg');


  2. 11 hours ago, PeterPanettone said:

    Why does the Quality Portal have so many errors and shortcomings, like a very narrow report editor?

     

    I believe that's the part of the new Embarcadero policy. 0 bugs in Delphi 12 due to the fact that we  cannot report any new bugs.

    • Like 1
    • Haha 1

  3.   while not SQLQuery1.Eof do
      begin
        currentLine := '';
    	for i := 0 to sqlQuery1.fieldcount-1 do
      	  currentLine := currentLine + ' ' + sqlQuery1.fields[i].asString;
         memOutput.Lines.Add(currentLine);
         SQLQuery1.Next;
       end;

    The above code doesn't require the Stringlist to iterate the fields of the query.

     

     

    To add a database the documentation states it should be a form of (https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Using_SQLite_with_FireDAC):

     

    Database=<path to SQLite database>

    While you've tried: 

    SQLConnection1.Params.Add('D:Delphi 11 Community\My Projects\Connecting to SQLite\Data\dat2.sqlite');

    You should do

     

    SQLConnection1.Params.Add('Database = ');  append here the real path to the database.

     

     

    I believe instead of MemOutput.ClearSelection you wanted MemOutput.Clear.


  4. 34 minutes ago, gioma said:

    Could you explain better what I should do? Thank you

    In my case I've renamed the folder "C:\Program Files (x86)\Embarcadero\Studio\23.0" to "C:\Program Files (x86)\Embarcadero\Studio\!23.0" started Delphi 11.2 Closed it, renamed back the folder since then I can start both versions.

×