Recent

Author Topic: [RESOLVED] Porting a component to Lazarus - using "New Component"  (Read 273 times)

ozznixon

  • Jr. Member
  • **
  • Posts: 90
    • http://www.modernpascal.com/
I expected 99% of this to be copy/paste - maybe add a @ or a ^ here and there... but, now it is telling me my variable names are duplicate identifiers for db.pas methods and variable name - wtf?!

(see attachment)

Laz 2.1.0 10/12/2019
FPC 3.3.1
(on MacOS 10.13.6)
« Last Edit: January 13, 2021, 01:04:49 am by ozznixon »
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

Blaazen

  • Hero Member
  • *****
  • Posts: 3011
  • POKE 54296,15
    • Eye-Candy Controls
Re: Porting a component to Lazarus - using "New Component"
« Reply #1 on: January 12, 2021, 02:32:38 am »
It is not allowed in {$mode objfpc} to have the same name for method parameter and property or method name.
It is indeed possible in {$mode delphi}. Or change the names to AAppend etc. (double A is intended here)
Lazarus 2.1.0 r64115 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

ozznixon

  • Jr. Member
  • **
  • Posts: 90
    • http://www.modernpascal.com/
Re: Porting a component to Lazarus - using "New Component"
« Reply #2 on: January 13, 2021, 01:04:11 am »
@Blaazen, thank you - I thought I was going nuts!!
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

 

TinyPortal © 2005-2018