Recent

Author Topic: Q V2, FPC-AVR string handling  (Read 2706 times)

pascalbythree

  • Full Member
  • ***
  • Posts: 110
Q V2, FPC-AVR string handling
« on: December 11, 2021, 02:41:41 pm »
Does anybody know what unit i have to use for FPC-AVR to do string handling?

I need for example inttostr

But it does not compile.

Anybody knows what to include ?

Greets, Wouter

ccrause

  • Hero Member
  • *****
  • Posts: 592
Re: Q V2, FPC-AVR string handling
« Reply #1 on: December 11, 2021, 05:24:20 pm »
IntToStr is part of the SysUtils unit, which is not yet available for AVR.  You can use Str which is part of the system unit:
Code: Pascal  [Select][+][-]
  1. var
  2.   s: shortstring;
  3.  
  4. begin
  5.   Str(1234, s);

 

TinyPortal © 2005-2018