Jump to content

Ian Branch

Members
  • Content Count

    1352
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ian Branch

  1. Ian Branch

    Flow Chart Software??

    Hi Team, I am after a good Flowchart application to 'flowchart' my Delphi units. I see there are several out there. Interested in recommendations from Delphi Users. Regards & TIA, Ian
  2. Ian Branch

    Flow Chart Software??

    Hi All, Thank you for your suggestions. Appreciated. I have drawio and it isOK for what it is. I also have Unit Dependancy Viewer, it too is good at what it does, but what it produces isn't something to feed a Customer/User. Being lazy, I was looking for something that will open the Unit and generate a flowchart.
  3. Hi Team, I have the following procedure. procedure TLogInForm.edtUserIDExit(Sender: TObject); begin // if Trim(edtUserID.Text) = '' then begin TaskMessageDlg('User ID Error!', 'A User ID is required to be entered.', mtError, [mbOK], 0); edtUserID.SetFocus; end; // end; The procedure is in a home brew Log in Dialog. It works fine, with one exception, If I click Cancel on the form and edtUserID is empty, of course the event fires. How do I bypass/negate the event if btnCancel is clicked when edtUserID is empty? Regards & TIA, Ian
  4. Ian Branch

    Block Component Exit Event on Cancel?

    Hi Guys, Thank you for your inputs. I have moved the handling to the OK button. All good now. Regards, Ian
  5. Ian Branch

    Uses Clause Sorting??

    Hi Team, I recently had the experience where all of my '.dproj' files in a major project group were corrupted. 😞 So, I have had to rebuild them. Oh, the pain! Anyway, MMX onfiguration is of course part of that. Having set a few 'Groups' in the 'Uses Clause Sorting' i tried setting the 'Default'. Much to my pleasure, as I opened MMX for each of the 'new' projects, the Default and the Groups were set. Halleluah!! Now, from time to time I extend the listing. I tested and found that if I added to the 'Default', it didn't propagate to the 'Groups'. 😞 It would be nice to have, say a checkbox, that made the Default used instead of Groups. If I guess correctly, if I change 'Default' then it would be used in all the Projects?? Just a thought.. Regards, Ian
  6. Hi Team, Win 11, D12.1. They used to, but I have just noticed that if I disable a DEFINE, {.DEFINE XXXXX}, the code between the {$IFDEF XXXXX} & {$ENDIF} no longer greys out the code inbetween. It used to. If I create a new project and do that, it works. Is there somewhere in my projects that I may have inadvertantly switched off that would cause this? This is an actual example where the code isn't being greyed out: Regards & TIA, Ian
  7. Ian Branch

    {$Defines xxxx} not working at design time..

    Found it!!! Seems somehow all my current .dproj files have been corrupted. 😞 Deleted and rebuild, all good. Very strange. Thanks to all for your inputs, appreciated. Ian
  8. Ian Branch

    {$Defines xxxx} not working at design time..

    Thank you to all for your input so far. Appreciated. The fact that I can create a New project and it works fine suggests that the functionality itself is still there and working. I opened a project that I hadn't touched for months, it worked fine.... Which suggests something related to ALL my current projects. I tried adding a new form to a current project and testing, same result. 😞
  9. Ian Branch

    {$Defines xxxx} not working at design time..

    I can create a new project and it all works fine/as expected.
  10. Ian Branch

    {$Defines xxxx} not working at design time..

    I just checked an old Console App and it is doing the same thing there. 😞
  11. Ian Branch

    {$Defines xxxx} not working at design time..

    FWIW, it is doing it on all my projects, even ones I haven't touched in a while. 😞
  12. Ian Branch

    {$Defines xxxx} not working at design time..

    Hi Uwe, Ctrl-Click works fine. CodeInsight doesn't throw anything up. ErrorInsight doesn't show anything. Ian
  13. Ian Branch

    {$Defines xxxx} not working at design time..

    Nope. Didn't work. The IDE knows about the {.$DEFINE XXXXX} because further down code that was enabled by the Define shows as an error in the Structure. At run time all is as it should be. I have also noticed Conditionals from the Project aren't being handled correctly at Design time either. 😞
  14. Ian Branch

    'Automated' install of Indy??

    Hi Team, Having installed D12.1 over D12, it of course installed its own Indy version. I am sure I saw/read somewhere about a a script of some sort that replaced the distributed with Delphi version with the one from GitHub. Hopefully I wasn't imagining it. Does this ring a bell with anyone? Regards & TIA, Ian
  15. Ian Branch

    'Automated' install of Indy??

    Ahhh. Excellent. Thank you.
  16. Hi Team, This is as much to reinforce with me as it is info that may help others. "Local variables are actually not initialized, but global variables and object fields are initialized to zero (which means 'false' for boolean variables). Therefore you always have to initialize local variables yourself, compiler even generates a warning if you don't." I got caught out with an inline variable. var lTest: boolean; I incorrectly assumed ite defaulted to False. This is not so, in fact in my tests it seems to default to TRUE. However, I won't bank on that and will allways initialise local variables now. No, I never noticed the warning, or if I did I ignored it. 😞 Ian
  17. Done & dusted. Tks.
  18. Ian Branch

    Delphi 12.1 is available

    Reported - RSS-475 in the new Quality Portal.
  19. Ian Branch

    GExperts 1.3.24 Beta1 for Delphi 12

    Current GExperts builds without issue in D12.1.
  20. Ian Branch

    Delphi 12.1 is available

    Ditto.
  21. Ian Branch

    'Automated' install of Indy??

    Does Clean_<version>.cmd install 32 & 64 bit or is it selectable? I only do 32 bit.
  22. Cheers. It's a pity it has to be set per Project. Tks.
  23. A good idea. Where/how does one do that?
  24. Ian Branch

    Delphi 12.1 is available

    Installed 12.1 over 12 without using the Web Installer issue. It didn't install the latest Help (.chm) files. 😞
  25. Hi Team, Delphi 12. Is there a way to embed the current design time code line number into a string so that it can be shown in a message. It needs to reflectthe actual line number, even if the previous code is edited and it's actual number changes. Regards & TIA, Ian
×