Jump to content

emileverh

Members
  • Content Count

    68
  • Joined

  • Last visited

  • Days Won

    2

emileverh last won the day on March 23 2023

emileverh had the most liked content!

Community Reputation

19 Good

Technical Information

  • Delphi-Version
    Delphi 12 Athens

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Can you send me the reader too? Thx!
  2. emileverh

    Set form in read only mode

    Use GetControls() new since Delphi 11 I believe. Just as an example for me to disable TcxEdit's only. But you can do your own stuff: for var ctrl in frmMain.GetControls([ceftAll]) do begin if (ctrl is TcxEdit) then begin TcxEdit( ctrl).Enabled := false; end; end;
  3. emileverh

    Simpel types

    Great! Thanks a lot!!
  4. emileverh

    Simpel types

    Hi guys! I am using D12. I have lots of code for ID’s like this: type TProductID = record ID : nativeint; end; What I want is this: type TProductID = nativeint; And yes I know the last declaration works! But when you make a call to a procedure and you mixed the params by mistake you got no error. Is there any helper, record attribute, compiler directive or so where I did not think of?!?! procedure TForm6.FormCreate(Sender: TObject); begin var tmpid: TProductID := 6; AddToStock(tmpid, 100); AddToStock(100, tmpid); // I want a compiler warning or error here!!!!!!! end; procedure TForm6.AddToStock(pid: TProductID; cnt: nativeint); // Both uses internally nativeint begin ShowMessage(pid.ToString); end; Now I have lot's(!) of database code like this in my program.... var cid : TCustomerID; var pid: TProductID; pid.ID := qryGetStockProductID.AsInteger; cid.ID := qryGetStocCustID.AsInteger; What I want is: pid:= qryGetStockProductID.AsInteger; cid := qryGetStocCustID.AsInteger;
  5. @Angus and @FPiette, thank you both!!
  6. Hi! I installed ICS 9.1 today, wowww I am impressed. The demos are very impressive, compliments to the author(s) 😉 But also overwhelming with so much functionality. Can you give me a direction where to look for with what is the easiest way to find a MySQL server ( with port 3306 open) on my LAN (192.168.x.x)? Thanks in advance, Emile
  7. emileverh

    What new features would you like to see in Delphi 13?

    I know it's a compiler problem, but why can they do it with classes and not with records....
  8. emileverh

    What new features would you like to see in Delphi 13?

    That can be true, but that is 'not my problem' how to solve it. I use records a lot for several reasons (speed, memory management,....). And it would be VERY nice to have that.
  9. emileverh

    What new features would you like to see in Delphi 13?

    forward declaration of records, just like a class
  10. emileverh

    Do runtime created forms close the TFDQuery connections?

    Thanks for the quick reply!! 😉
  11. emileverh

    Do runtime created forms close the TFDQuery connections?

    The TFDConnection is on a central place in the program on a different datamodule. ( MySQL and the property 'Pooled' is left default, which is False )
  12. Hi team! frmSelectFooter := TfrmSelectFooter.Create(self); if frmSelectFooter.ShowModal = mrOk then begin ... end; FreeAndNil( frmSelectFooter ); If there are TFDQuery's used in that form, do I need to close explicitly close the query? In other words, are (database) resources still in use? Thanks! Emile
  13. emileverh

    What new features would you like to see in Delphi 13?

    Totally agree. Fix the existing things first....
  14. emileverh

    Access multiple Outlook calendars

    Looks interesting. I will try that! Thanks for your help ;-))
×