Recent

Author Topic: [SOLVED] Bug in TryStrToInt??  (Read 620 times)

avk

  • Full Member
  • ***
  • Posts: 130
    • my self-education project
Re: Bug in TryStrToInt??
« Reply #15 on: September 16, 2019, 12:49:33 pm »
Did I somewhere said that this is a bug?

PascalDragon

  • Hero Member
  • *****
  • Posts: 626
  • Compiler Developer
Re: Bug in TryStrToInt??
« Reply #16 on: September 17, 2019, 09:20:24 am »
Morons: 99 is already a number and not a string!!! And so the result is false. Programmer error....
As marcov said, it's not a programmer error (except maybe not checking the result of TryStrToInt). bonmario simply set WrkNum to some defined value to show that TryStrToInt changes that variable due to the successful conversion of xd to 13.

bonmario

  • Sr. Member
  • ****
  • Posts: 296
Re: Bug in TryStrToInt??
« Reply #17 on: September 17, 2019, 01:52:45 pm »
Thanks to all, solved using "character.IsNumber" before.

Hi, Mario