Recent

Author Topic: how do I use TCharacter (or any other library)  (Read 575 times)

Weiss

  • Full Member
  • ***
  • Posts: 127
how do I use TCharacter (or any other library)
« on: May 27, 2022, 10:46:46 pm »
beginner here, sorry for asking stupid question. I am trying to check if user input string is a number, and found this easy IsNumber function. But when I include it in my code it does not compile, compiler doesn't know this function. How does it work? I installed FPC only a few months ago.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11387
  • FPC developer.
Re: how do I use TCharacter (or any other library)
« Reply #1 on: May 27, 2022, 10:50:37 pm »
Add the "character" unit to the uses list: https://wiki.freepascal.org/Uses

Weiss

  • Full Member
  • ***
  • Posts: 127
Re: how do I use TCharacter (or any other library)
« Reply #2 on: May 28, 2022, 02:45:37 am »
thank you marcov!!

 

TinyPortal © 2005-2018