Recent

Author Topic: Getting TCustomAttribute  (Read 1272 times)

Weitentaaal

  • Sr. Member
  • ****
  • Posts: 489
  • Weitental is a very beautiful garbage depot.
Getting TCustomAttribute
« on: September 19, 2023, 12:47:31 pm »
Hello,

i would like to have this Class: https://wiki.lazarus.freepascal.org/Custom_Attributes

what would i need to install to get this Class ?
Tried to install FPC 3.3.1 version with FPCUpDeluxe but it installed 3.2.2 again, what did i do wrong ? (attached a Picture)
Clicked on the Install/Update FPC+Lazaarus Button and it finished successfully.

thanks.
Lazarus: 2.0.12 x86_64-win64-win32/win64
Compiler Version: 3.2.0

zeljko

  • Hero Member
  • *****
  • Posts: 1522
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Getting TCustomAttribute
« Reply #1 on: September 19, 2023, 01:53:33 pm »
Install trunk fpc.

Weitentaaal

  • Sr. Member
  • ****
  • Posts: 489
  • Weitental is a very beautiful garbage depot.
Re: Getting TCustomAttribute
« Reply #2 on: September 19, 2023, 02:42:08 pm »
just installed trunk following this: https://forum.lazarus.freepascal.org/index.php?topic=38368.0

these are my versions showing in the about section of the IDE

Lazarus 2.2.6 (rev 0df75f4) FPC 3.2.2 i386-win32-win32/win64

i selected "Install trunk" as seen in the Attached picture.

shouldn't i have FPC 3.3.1 ?

EDIT: is there something Similar to TCustomAttribute ?
Lazarus: 2.0.12 x86_64-win64-win32/win64
Compiler Version: 3.2.0

zeljko

  • Hero Member
  • *****
  • Posts: 1522
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Getting TCustomAttribute
« Reply #3 on: September 19, 2023, 03:25:59 pm »
I guess that "Trunk" option means fpc trunk + lazarus trunk, and yes you should see fpc-3.3.1 as fpc version.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5281
  • Compiler Developer
Re: Getting TCustomAttribute
« Reply #4 on: September 19, 2023, 08:33:48 pm »
EDIT: is there something Similar to TCustomAttribute ?

No.

Thaddy

  • Hero Member
  • *****
  • Posts: 13253
Re: Getting TCustomAttribute
« Reply #5 on: September 20, 2023, 09:15:57 am »
I just re-tested my complete example that I added to the wiki and it simply works... So there must be something else wrong.
I actually get compliments for being rude... (well, Dutch, but that is the same)

TRon

  • Hero Member
  • *****
  • Posts: 1851
Re: Getting TCustomAttribute
« Reply #6 on: September 20, 2023, 09:34:14 am »
@Weitentaaal:
If you have multiple or previous installations of free pascal then Lazarus might pick up on the wrong version.

To investigate, see this post (literal issue of TS there is different but cause is the same).

PS: Are you sure you started the right lazarus version that fpcupdeluxe just installed ?

Weitentaaal

  • Sr. Member
  • ****
  • Posts: 489
  • Weitental is a very beautiful garbage depot.
Re: Getting TCustomAttribute
« Reply #7 on: September 21, 2023, 08:26:34 am »
@Weitentaaal:
If you have multiple or previous installations of free pascal then Lazarus might pick up on the wrong version.

To investigate, see this post (literal issue of TS there is different but cause is the same).

PS: Are you sure you started the right lazarus version that fpcupdeluxe just installed ?


i tried to solve it like suggested in the Post you mentioned, but without success. So i decided do completly remove Lazarus and install both versions i need. I follewed this Tutorial: https://wiki.freepascal.org/Multiple_Lazarus, and it did work. The first time i was following the same example, but i messed up somewhere i guess.

im not sure where the error was but i got it to run now.

Thank you guys once again for your help.
« Last Edit: September 21, 2023, 08:31:50 am by Weitentaaal »
Lazarus: 2.0.12 x86_64-win64-win32/win64
Compiler Version: 3.2.0

 

TinyPortal © 2005-2018