Jump to content

PeterPanettone

Members
  • Content Count

    1409
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by PeterPanettone


  1. 4 minutes ago, JohnLM said:

    Although there is no mention, it appears that the new "RAD AI Compansion" website: https://docwiki.embarcadero.com/RADStudio/ is not available. 

    Unless I'm mistaken or the link in the webinar video is incorrect, it is only for current subscription holders.  

     

    Forbidden: You don't have permission to access /RADStudio/Florence/ on this server.

     

    It is available from this URL: https://www.embarcadero.com/RADAICompanion


  2. 44 minutes ago, PeterPanettone said:

    In GetIt, the IPWorks component library is not explicitly marked as "TRIAL":

     

    image.thumb.png.4e3eb26738606308f36c31c2f9beab99.png

     

    Can it be used for free when downloading it from GetIt? At the IPWorks homepage, the IPWorks component library can be purchased for $999.

    Someone said:

     

    "It can be considered unfair to offer a trial download of IPWorks in Embarcadero's GetIt Package Manager without explicitly marking it as a "Trial," primarily due to inconsistencies in labeling that may mislead developers about its licensing and usage restrictions."


  3. In GetIt, the IPWorks component library is not explicitly marked as "TRIAL":

     

    image.thumb.png.4e3eb26738606308f36c31c2f9beab99.png

     

    Can it be used for free when downloading it from GetIt? At the IPWorks homepage, the IPWorks component library can be purchased for $999.


  4. I've found it: F3 automatically searches the next occurrence of the selected text only if CnWizards is installed.

     

    I've tested it by unloading CnWizards. When CnWizards is not loaded, then F3 on the selected text displays this message:

     

    image.thumb.png.749ce23070a3b7d15c4107097f36b018.png

     

    And then, when clicking the "Yes" button after having checked "Wrap around without asking", this message is displayed:

     

    image.thumb.png.8fcf4049e95cc7bddc3781a2792d89f1.png

     

    This could be a bug in the Delphi IDE that CnWizards resolves.

    • Like 1

  5. OK, here is another simple trick I often use to quickly jump to specific locations in very large units (e.g., 20,000 lines, like in my upcoming "Advanced Windows Start Menu"):

    We could use simple bookmarks for this purpose, but I often clear them all after finishing a specific short-term task. So we need something more persistent:*

     

    *Prerequisites: CnWizards

     

    1. Create these kinds of comments on the locations you want to jump to quickly:

     

    implementation // toc_implementation
    public // toc_public
    // toc_PrivateVariables
    private // toc_private
    TForm1 = class(TForm) // toc_MainFormClass
    // etc.

     

    2. Then put all these TOC items at the very top of your huge unit:

     

    {TOC:
    toc_implementation
    toc_public
    toc_PrivateVariables
    toc_private
    toc_MainFormClass
    }

     

    3. Then, when you need to quickly jump to one of these locations in your huge unit:

     

    - Press CTRL+Home to jump to the top of the unit
    - Double-click one of the toc_ items to select it
    - Press F3 to quickly jump to this location

     

    This will save you a lot of search time!

     


  6. 5 minutes ago, Javier Tarí said:

    AI can become a zillion things, depending only on the humans using it

    You are so right. That is exactly the right way to look at AI. Unfortunately, AI is also becoming a tool for political oppression. And thank you for the humorous part.

    • Like 1

  7. 17 hours ago, DelphiUdIT said:

    you have to read the accompanying documentation

    You are right, DOCUMENTATION is everything. AI-generated code without accompanying documentation is dangerous (SUPERGROK always links to documentation for anything it generates). However, I strongly reject "regulation" laws from a criminal organization as the so-called "EU" (EU ≠ Europe).


  8. On 9/12/2025 at 2:55 PM, dummzeuch said:

    I just tried the new RAD AI companion

    Generally, AIs often make mistakes or hallucinate when asked advanced questions about Delphi code. The most reliable AI for Delphi code is SUPERGROK.


  9. 4 minutes ago, DelphiUdIT said:

    Many manufacturers no longer support 32-bit technology

    Possible scenarios for the upcoming 128-bit technology:

     

    • Specialized applications such as scientific calculations or cryptography could benefit from it

    • Very large databases or in-memory computing could potentially require it

    • New areas of application that we cannot foresee today


  10. 1 minute ago, David Duffy said:

    I can't replicate your issue either.

    You should know that computer programs are not deterministic, especially complex computer programs like the Delphi IDE. So, a statement like "but it works on my computer!" is a typical statement from computer illiterates.


  11. Like many code editors, the Delphi source code editor (both 12 and 13) has a useful feature:

     

    Clicking the Line Number selects the whole Line. This allows you to easily copy an entire single line by first clicking on a Line Number and then pressing CTRL+C.

     

    However, this does not work when clicking on the LAST DIGIT of a line number!

     

    Is this a bug or a configuration issue? Or is it due to HighDPI interference?


  12. On 9/12/2025 at 10:16 AM, Patrick PREMARTIN said:

    For the search by word they used the same behavior as "find" option in source editor. Suggesting more options could be a good thing too.

     

    We don't have to wait for next major release, it could be done for an update.

    The SmartSearch principle is very simple:

    function ContainsSearchTerm(const AText, ASearchTerm: string): Boolean;
    // returns True if:
    // if ASearchTerm is single word:                       if AText contains ASearchTerm
    // if ASearchTerm is multiple words (devided by space): if AText contains all words
    var
      LWords: TArray<string>;
      LWord: string;
    begin
      // Return False if ASearchTerm is empty
      if System.SysUtils.Trim(ASearchTerm) = '' then
        Exit(False);
    
      // Split search term by space
      LWords := ASearchTerm.Split([' ']);
    
      // If there's only one word, check if AText contains that word
      if System.Length(LWords) = 1 then
      begin
        Result := System.StrUtils.ContainsText(AText, ASearchTerm);
      end
      else
      begin
        // Multiple words: AText must contain all words
        Result := True;
        for LWord in LWords do
        begin
          if not System.StrUtils.ContainsText(AText, LWord) then
          begin
            Result := False;
            Break;
          end;
        end;
      end;
    end;

     

    Here is a shorter optimized version:

     

    function ContainsSearchTerm(const AText, ASearchTerm: string): Boolean;
    var
      LWords: TArray<string>;
      LWord: string;
    begin
      // Split search term by space, filter out empty words
      LWords := Trim(ASearchTerm).Split([' ']);
      if Length(LWords) = 0 then
        Exit(False);
    
      // Check if AText contains all non-empty words
      for LWord in LWords do
        if (LWord <> '') and not ContainsText(AText, LWord) then
          Exit(False);
    
      Result := True;
    end;

     


  13. 55 minutes ago, DelphiUdIT said:

    For me is working, every time I insert or delete a char (with backspace or canc) the list is updated.

    Obviously, you didn't read what I wrote. I wrote: "removing the search box content with the BACKSPACE key".

     

    1. For example, enter "kirk"

    2. Then, remove the whole content "kirk" with the backspace key.

    3. Result: Not all 104 items are restored.


  14. I think I've found the bug: When entering something in the search box and then removing the search box content with the BACKSPACE key, the search box content is not really removed but only made INVISIBLE. Only when clearing the search box content by clicking on the "x" pseudo button, the search box content is really removed. That's a common bug that often occurs in Delphi development when a feature is not carefully tested.

×