-
Content Count
2837 -
Joined
-
Last visited
-
Days Won
168
Everything posted by Uwe Raabe
-
Can you restart the LSP or do you have to restart the whole IDE?
Uwe Raabe replied to Der schöne Günther's topic in Delphi IDE and APIs
Delphi 12 already has a separate menu item for this unter Tools. -
The current implementation of the code formatter is deprecated, probably because it relies on some dotnet code that is going to be thrown out. I expect a proper replacement for the formatter in the future.
-
AFAIK, the Modeling option is selected by default. So, as long as you don't deselect it...
-
trying to POST multiple values of same parameter
Uwe Raabe replied to Joe Sansalone's topic in Cross-platform
It doesn't even get a name to search for: function TRESTRequestParameterList.AddItem: TRESTRequestParameter; begin Result := Add as TRESTRequestParameter; end; -
trying to POST multiple values of same parameter
Uwe Raabe replied to Joe Sansalone's topic in Cross-platform
Have you tried using the parameterless AddItem function overload and set the Name, Value and Kind in its result? -
Copy table data between two different databases.
Uwe Raabe replied to Jeff Steinkamp's topic in Databases
Regarding speed, the docwiki link states at the end: Depending on the requirements about the restrictions mentioned in the lines above that quote, assigning Data may be the better approach, while CopyDataSet covers a broader use case. -
Copy table data between two different databases.
Uwe Raabe replied to Jeff Steinkamp's topic in Databases
If the tables have the same structure it might be as simple as using two TFDTable components with their attached connections and call CopyDataSet on the target one. -
How to sort only a part of a list
Uwe Raabe replied to caymon's topic in Algorithms, Data Structures and Class Design
You didn't mention the Delphi version, but since Delphi 11 you can use the appropriate Sort overload taking a comparer, start index and count. procedure Sort; overload; procedure Sort(const AComparer: IComparer<T>); overload; procedure Sort(const AComparer: IComparer<T>; Index, Count: Integer); overload; -
Bug in TNumberBox: i cannot override a negative Number, if i type "-" in
Uwe Raabe replied to Perpeto's topic in VCL
Seems it already exists: RSP-42131 -
If Debug-DCUs is not active there will be no blue dots in the Delphi sources.
-
Only when you want to break or step into the Delphi units.
-
Memory leak with anonymous methods.
Uwe Raabe replied to pyscripter's topic in RTL and Delphi Object Pascal
When I run that code in a vanilla VCL Forms Application in a ButtonClick event - nothing happens. Either commenting out the last line or inserting a Sleep(100) before makes the ShowMessage appear. The problem here is that the anon method captures the variable and not the value. Thus setting the value of TerminateProc to nil has influence of what is passed to TThread.Queue. It heavily depends on the timing of whether the Queue call comes first or the setting to nil. Seems not to be a valid solution to avoid the leak.- 4 replies
-
- anonymousmethods
- threads
-
(and 1 more)
Tagged with:
-
Call for Delphi 12 Support in OpenSource projects.
Uwe Raabe replied to Tommi Prami's topic in Delphi Third-Party
There are different levels of beta testers... -
Can I set a property within a TFrame for all instances of the frame at run time?
Uwe Raabe replied to XylemFlow's topic in FMX
Another approach would be to declare a TMessage descendant that the frame (and probably also any form) subscribes to during creation and unsubscribes from on destruction. Then you can broadcast this message when the language changes. uses System.Messaging; type TLanguageMessage = class(TMessage<string>); ... procedure TMyFrame.HandleLanguageMessage(const Sender: TObject; const M: TMessage); begin var msg := M as TLanguageMessage; SwitchToLanguage(M.Value); end; ... TMyFrame.Create FLanguageMessageID := TMessageManager.DefaultManager.SubscribeToMessage(TLanguageMessage, HandleLanguageMessage); ... TMyFrame.Destroy TMessageManager.DefaultManager.Unsubscribe(TLanguageMessage, FLanguageMessageID, True); ... NotifyLanguage TMessageManager.DefaultManager.SendMessage(nil, TLanguageMessage.Create('DE')); -
Call for Delphi 12 Support in OpenSource projects.
Uwe Raabe replied to Tommi Prami's topic in Delphi Third-Party
You mean, that I am part of the beta? That is already known in public IAW Embarcadero: TZipFile Improvements in Delphi 12 -
Call for Delphi 12 Support in OpenSource projects.
Uwe Raabe replied to Tommi Prami's topic in Delphi Third-Party
During the beta I use private forks of the public repositories to store all the changes. On release date the fork is merged into public. I don't distinguish code I may publish or not. -
I need advice on converting a 500k lines 32bit Delphi 7 application to 64bit
Uwe Raabe replied to Yaron's topic in General Help
AFAIK, the TNT Unicode Components were acquired by TMS a couple of years ago, but they are tagged compatible up to Delphi 10.2 now: TMS Unicode Component Pack - looks like they are just abandoned. -
You can always tweak the source of DUnitX.Loggers.GUI.VCL.pas to your needs. Currently the code for saving is located in FormClose. Besides extracting it to a dedicated method, it can be inserted at the beginning of RunExecute. In Contributing.md you find instructions to make your enhancements available for all.
-
Well, the FormatFloat implementation has the E15 hardcoded and even documented:
-
Well, FormatFloat acts as expected; for var I := 1 to 10 do Writeln(FormatFloat('', I/10)); for var I := 1 to 10 do Writeln(FormatFloat('', I*Power10(1, 14))); Output:
-
Have you tried with AxisValueFormat being empty?
-
At least that is how I read the license:
-
When you create a new test project and add one of the units for testing, the project won't compile unless all dependent units can be found. So you need to add the search paths accordingly. There is nothing wrong with having dependencies in the first place. It just makes picking only one unit from the project into another one a bit difficult. Nevertheless, it is always worth thinking about minimizing dependencies, but not only because of simpler testing. The not seems appropriate, but the term project to be tested should be changed to test project.
-
I need advice on converting a 500k lines 32bit Delphi 7 application to 64bit
Uwe Raabe replied to Yaron's topic in General Help
It depends on the actual sources. I have had projects that just needed a compile with the new version and target, while others lasted several months. -
Use of dynamic control names
Uwe Raabe replied to Bart Verbakel's topic in Algorithms, Data Structures and Class Design
That could even be simplified to: for var btn in [Button1, Button2, Button3, Button4, button5] do btn.Enabled := not btn.Enabled;