Jump to content

Ian Branch

Members
  • Content Count

    1431
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ian Branch

  1. Cheers. It's a pity it has to be set per Project. Tks.
  2. A good idea. Where/how does one do that?
  3. 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. ๐Ÿ˜ž
  4. 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
  5. Ian Branch

    Embed line number at design time??

    Yup. Works just as well. Tks.
  6. Ian Branch

    Embed line number at design time??

    Noted. Tks.
  7. Ian Branch

    Embed line number at design time??

    Tks. Exactly what I needed/wanted. I made a minor change as I am using D12: /// <summary> /// Retrieves the current line number. /// </summary> /// <remarks> /// Requires the JCLDebug unit. /// </remarks> /// <returns>The line number of the current position.</returns> function GetCurrentLineNumber: Integer; begin // var ModInfo := GetLocationInfo(ReturnAddress); // Result := ModInfo.LineNumber; // end; LineByLevel - Whilst I could use it in my code by adding JCLDebug, I wanted to have it as a function in my library. If I used it from my library I got the line number in the library, not the Apps code. Regards & Tks again, Ian
  8. Ian Branch

    Embed line number at design time??

    I had a look at that previously. I may be missreading its use but it seems that JCLDebug relies on an Exception for something like this to work: function GetCurrentLineNumber: Integer; var ModInfo: TJclLocationInfo; begin ModInfo := GetLocationInfo(ExceptAddr); Result := ModInfo.LineNumber; end;
  9. Hi Team, D10.4.2, Win 10, 4k monitor @ 150%. Anybody else seeing this effect in the Object Inspector?? If it's just me I won't sweat it, if it is being seen elsewhere I will raise a QC ticket. Ian
  10. Ian Branch

    Delphi and "Use only memory safe languages"

    Oh how true.....
  11. Ian Branch

    Alternative to VMWare??

    Hi Team, With the recent change in ownership of VMWare and the changes that have been wrought to it, I am leary of continuing to use it. What is a suitable alternative? I am using Win 11.
  12. Ian Branch

    Alternative to VMWare??

    Ahhh. Tks.
  13. Ian Branch

    Alternative to VMWare??

    Tks Brian. Yes, VMWare Workstation Pro. What dictates which alternative you use? Ian
  14. Ian Branch

    D12 Indy install - IndyIPServer error

    Hi Team, Win 11, D12.1. I installed the latest Indy10 per the instructions. I noted that the uninstall cmd kept failing due to access level. I manually deinstalled the indicated Indy files. I then installed the 290.groupproj without issue. On restarting D12 I see the following message: I found IndyIPServer.dpk but Delphi doesn't like it. ๐Ÿ˜ž Do I need this .bpl? If yes, how do I now recreate it to Indy10? I am also seeing this error when I start D12: Regards & TIA, Ian
  15. Ian Branch

    D12 Indy install - IndyIPServer error

    Ditto.
  16. Ian Branch

    D12 Indy install - IndyIPServer error

    That is what I used.
  17. Ian Branch

    D12 Indy install - IndyIPServer error

    IndyIPServer290 issue: Deleted it and the issue went away. ๐Ÿ˜‰ It should have been deleted with the Clean up. LivePreview Issue: Answered in 2021 when I had the same issue. I don't use it so it doesn't matter.
  18. Ian Branch

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

    Case on Strings. i.e. case myStringVariable of 'A': do something; 'Test': do something; etc end;
  19. Ian Branch

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

    Aside from wanting all the existing features/functions working 100% and bug free, I wouldn't mind a construct like this: var a := b := c := d := 0; or similar.
  20. Hi Team, Seemingly since I installed the D12 Patch: If I press enter here: on seemingly any method, or even within the code, more often than not I get this: Nothing else has changed. It is repeatable. Is it me or is there a bug un the Patch/update? It didn't happen before the Patch/Update. Regards & TIA, Ian
  21. Roger, Lars, Fair comment. I apologise. I would edit it if I could.
  22. So, the thicken plots.... I have narrowed it down to using the ''' construct with the ExpandedText property of a TTaskDialog. I create the TTaskDialog in code. Everything is happy with this: ExpandedText := '1. Wait - The App will try to reconnect until it connects or it has another connection timeout.' + sLineBreak + '2. Cancel - This is a last resort selection and will result in an Application crash and generate a formal error report.' + sLineBreak + 'At this error prompt you have the normal error report options.' + sLineBreak + 'If you don?t know or understand the error report dialog or the options available you should ask to your Workflow System Administrator.' + sLineBreak + 'It is strongly recommended that you select these options in the following priority/order => Wait then Cancel.'; As soon as I put all the text into the ''' construct and double click on the OnShow property of the form, It gives me the error that it can't find OnShow. Interestingly, I didn't get the 'finally-end' inserted as I edited the text.
  23. Hi Brian, You may have hit on something there. I think I first noticed it when I was setting up text within the ''' - ''' multi-line structure. The 4 files I found the issue in had been so edited. I restored previous versions of each and all was fine. Today I was just editing one of those files in the IDE and was in the process of restructuring a block of text per the ''' multi-line structure, when it happened. ๐Ÿ˜ž I had pressed enter at the end of the text line and got a 'finally-end' back. ๐Ÿ˜ž I did a test again to see if double clicking on the OnShow Event would work, and no, it now failed per my original experience. I tried to back out the ''' construct, but the issue persisted. ๐Ÿ˜ž I restored a 1 hour old backup and it was fine. Note to Self: Don't bother with ''' constructs for the foreseeable future. This isn't a Patch 1 specific issue, 3 of the 4 files restored went 'faulty' around mid-Jan & the fourth around mid-Dec. Unfortunately, I can't replicate this in a test App. ๐Ÿ˜ž Ian
  24. Hi Team, For what ever reason, it doesn't happen anymore. I didn't take notes, but I'm wondering if it was somehow related to the other issue I posted about which has been resolved. Seemingly corruption of some sort that I couldn't identify. Unfortunately, I can't recall if I experienced this issue in those Projects specifically, or in others. ๐Ÿ˜ž Certainly the issue reproduceable and annoying. Everything is working as expected now. Thank you all for your contributions. I will keep my fingers crossed... Regards, Ian
ร—