BertB 0 Posted September 11 In Delphi 12.0 multi line strings (as described in https://blog.marcocantu.com/blog/2023-09-yukonbeta-stringliterals.html) can cause error message 'Cannot find implementation of method ...' when clicking on a control. Add a new form to your application, add a Button. implementation {$R *.dfm} procedure TForm1.Test; var Query: string; begin Query := ''' SELECT COUNT(*) FROM test '''; end; procedure TForm1.Button1Click(Sender: TObject); begin // end; Procedure Test is private. The code compiles and runs as expected but during design time it caused me a little headache. It turns out that CodeInsight (or something else) is treating '(*' as the start of a comment. Change the SQL statement to SELECT COUNT ( *) FROM test Double clicking on the Button now finds its implementation. Just wondering it this has already been fixed in version 12.1. Share this post Link to post
Lajos Juhász 293 Posted September 11 (edited) No, it is not. It also breaks the deprecated code formatter. Unfortunately, we must wait until Delphi 15 to use this new feature. Edited September 11 by Lajos Juhász Added remark on code formatter. 1 Share this post Link to post
Lajos Juhász 293 Posted September 12 This is now working on D12.2. (Code formatter is still broken). Share this post Link to post