Recent

Author Topic: How do I convert an AnsiString to String?  (Read 10766 times)

georgelappies

  • New Member
  • *
  • Posts: 35
How do I convert an AnsiString to String?
« on: July 05, 2011, 08:44:31 am »
How do I convert an AnsiString to String?

Zoran

  • Hero Member
  • *****
  • Posts: 1980
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: How do I convert an AnsiString to String?
« Reply #1 on: July 05, 2011, 09:56:22 am »
Which compiler mode are you using?

In delphi mode string defaults to ansistring.
In objfpc mode, adding H+ directive is needed, but this is Lazarus default (when new unit is created, {$mode objfpc}{$H+} is automatically added).

What do you actually want to achieve?
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

georgelappies

  • New Member
  • *
  • Posts: 35
Re: How do I convert an AnsiString to String?
« Reply #2 on: July 05, 2011, 03:58:18 pm »
Hi thanks, actually I made a mistake and left out the .caption portion behind a label and when trying to assign a value to the label it gave me that error  :-[

 

TinyPortal © 2005-2018