Recent

Author Topic: identifier idents no member "AsAnsiString"  (Read 1301 times)

Weitentaaal

  • Sr. Member
  • ****
  • Posts: 339
  • Weitental is a very beautiful garbage depot.
identifier idents no member "AsAnsiString"
« on: November 16, 2021, 08:30:19 am »
Hello Guys,

i Got this Error (See Title)when trying to Start an old project. Is there Something i am missing ? My Co-Worker got the same Version of Lazarus and he can find this Function.
Lazarus: 2.0.12 x86_64-win64-win32/win64
Compiler Version: 3.2.0

af0815

  • Hero Member
  • *****
  • Posts: 845
Re: identifier idents no member "AsAnsiString"
« Reply #1 on: November 16, 2021, 08:39:23 am »
Is the FPC Version the same ? Because Lazarus have only a thin wrapper over the code from fpc for the DB functions. So it will be more fpc-centric.
regards
Andreas

Weitentaaal

  • Sr. Member
  • ****
  • Posts: 339
  • Weitental is a very beautiful garbage depot.
Re: identifier idents no member "AsAnsiString"
« Reply #2 on: November 16, 2021, 08:44:07 am »
No, noticed now that whe got a different one. I got 3.0.4 and he got 3.2.0
Lazarus: 2.0.12 x86_64-win64-win32/win64
Compiler Version: 3.2.0

Weitentaaal

  • Sr. Member
  • ****
  • Posts: 339
  • Weitental is a very beautiful garbage depot.
Re: identifier idents no member "AsAnsiString"
« Reply #3 on: November 16, 2021, 09:04:28 am »
Updating the Compiler seems to fix the Problem
Lazarus: 2.0.12 x86_64-win64-win32/win64
Compiler Version: 3.2.0

wp

  • Hero Member
  • *****
  • Posts: 9173
Re: identifier idents no member "AsAnsiString"
« Reply #4 on: November 16, 2021, 10:01:13 am »
Updating the compiler is fine, but you probably could have fixed the issue also by using .AsString rather than .AsAnsiString in the offending code line.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018