Jump to content

Lajos Juhász

Members
  • Content Count

    1078
  • Joined

  • Last visited

  • Days Won

    15

Posts posted by Lajos Juhász


  1. var

      lUser: TFDQuery;

     

     

    begin

    ....

    luser.open;

     

    If I set a break point on open and do a step into it will open C:\Program Files (x86)\Embarcadero\Studio\22.0\source\data\data.db.pas (correct D11.2)

     

    procedure TDataSet.Open;
    begin
      Active := True;
    end;
     

    Step into the Active := true;

     

    will open C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\source\data\firedac\FireDAC.Comp.DataSet.pas (Delphi XE5).


  2. Now I tried no active XE5 and yet the IDE opens source from XE5 instead of Delphi 11.2

     

    In the IDE the environment variable BDS is set correctly to c:\program files (x86)\embarcadero\studio\22.0. Even when the IDE is running from the command prompt I cannot inspect the value of this variable.

     

    Createad a new variable bds28 and changed the browsing path to use that variable the result is the same the IDE opens the source from XE5.


  3. 2 minutes ago, PeterBelow said:

    in Tbasicdm.DatamoduleCreate, is there really an underscore in the line after begin? That would be the source of the first error. The second may be a false positive, error insight is easily confused by conditional compilation...

    Both are false positives as the original messages says (the project builds and runs ok):

     

    Quote

    Hello.

    Delphi 11.2

    I have 2 "errors" that show in this page (see errors.jpg).

    Yet the project builds and runs ok. 

     


  4. You cannot assign png to glyph, but you can assign a TImageList or TVirtualImageList to the images property and using imageindex/imagename access the png picture. 

     

    In order to support high dpi you should consider using TImageCollection and TVirtualImageList (where you can use the imagename property instead of imageindex).

     

    (I don't have Delphi 10.3 to test this.)


  5. I have the same problem. The frame should be inline but I also have a frame that Delphi uses as object and then you cannot change the properties on the frame. 

     

    I have no solution spent hours to research the problem. (You cannot just change the DFM).


  6. 2 hours ago, Ian Branch said:

    Lajos - W.. n..?

    David already said everything. With can cause that you access something that you doesn't think (new property, field, method). Calling FreeAndNil for a local object has no reason it's just a classic code smell.

     

    Your aim should be to write clean and maintanable code that cannot be achieved using with.

    • Like 1

  7. There is no reason to verify the data after you generated the XML. It's always the best to verify in case the data is incorrect to change it and as a last step to generate the output.

    • Like 1
×