Recent

Author Topic: How can I stop autogenerating code blocks?  (Read 801 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10906
  • Debugger - SynEdit - and more
    • wiki
Re: How can I stop autogenerating code blocks?
« Reply #15 on: February 15, 2025, 06:55:59 pm »
Something related to ?

https://forum.lazarus.freepascal.org/index.php/topic,55819.msg415098.html#msg415098


Reading the top post of that link => sounds like the same issue. I thought it had been mentioned before.

LV

  • Full Member
  • ***
  • Posts: 239
Re: How can I stop autogenerating code blocks?
« Reply #16 on: February 15, 2025, 07:05:19 pm »
Thanks,@Paolo. The example provided at https://forum.lazarus.freepascal.org/index.php/topic,55819.msg415098.html#msg415098 illustrates the clear reason: the code in the implementation section was manually written. Replacing this with a Ctrl+Shift+C procedure resolves the issue.

dpap

  • Jr. Member
  • **
  • Posts: 52
Re: How can I stop autogenerating code blocks?
« Reply #17 on: February 15, 2025, 10:29:55 pm »
SOLVED

The problem was the different definition of the method in the implementation section.
The code was ported from Delphi and at the method's definition a variable was declared as Char but in the implementation section was declared as ANSIchar (as it was in Delphi). I can't recall if I was me who changed the declarations or the code transporter.
Anyway thanks for your help

 

TinyPortal © 2005-2018