Jump to content
Lars Fosdal

RAD Studio 13 is available

Recommended Posts

Obviously, I also didn’t read what you wrote, and for that reason it’s working as expected. I think I won’t read anything from you, so I don’t break the system.

  • Like 1

Share this post


Link to post
1 hour ago, PeterPanettone said:

Is dummzeuch an Illuminati expert? :classic_ninja:

Do Illuminati experts hate jokes?

No, I am one of them. And of course I hate jokes.

Share this post


Link to post
6 minutes ago, dummzeuch said:

I hate jokes.

Do you have a particular reason for hating jokes - perhaps if they are not 64-bit? 😉

Edited by PeterPanettone

Share this post


Link to post
3 hours ago, PeterPanettone said:

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.

This annoyance did happen but seem fine in the release.

Share this post


Link to post
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;

 

Edited by PeterPanettone

Share this post


Link to post

Like many code editors, the Delphi source code editor (both 12 1nd 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?

Share this post


Link to post
9 hours ago, PeterPanettone said:

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.

I can't replicate your issue either.

Share this post


Link to post
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.

Share this post


Link to post
12 minutes ago, David Duffy said:

I can't replicate your issue either.

Why are you repeating this to me? Sorry, but I can't help you.

Share this post


Link to post

One question: Can the 64-bit IDE generate 32-bit Exe ?

   If it can't, will it be able to do so in the future and next versions ?

Share this post


Link to post
25 minutes ago, luciano_f said:

One question: Can the 64-bit IDE generate 32-bit Exe ?

No.

25 minutes ago, luciano_f said:

   If it can't, will it be able to do so in the future and next versions ?

Who knows, maybe sometime.

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×