Recent

Author Topic: String conversion with default value routines  (Read 5139 times)

RaX

  • Newbie
  • Posts: 1
String conversion with default value routines
« on: December 01, 2006, 12:35:01 am »
I'd like to see routines such as StrToBoolDef, StrToIntDef and other related type conversion routines with defaults in Lazarus...

Thank you, by the way, for volunteering your time and effort to making Lazarus better. If it weren't for the Interface, I'd switch completely from Turbo Delphi =)

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: String conversion with default value routines
« Reply #1 on: December 01, 2006, 10:46:12 am »
You could add this as a feature request in the bugtracker. To save devellopers time, supply a complete list of functions you want to have added.
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: String conversion with default value routines
« Reply #2 on: December 01, 2006, 12:09:03 pm »
At least StrToIntDef  is already in the fpc sysutils unit.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
RE: String conversion with default value routines
« Reply #3 on: December 01, 2006, 12:12:38 pm »
StrToIntDef ist there. StrToBool raises an exception when input is neither "true" nor "false".
see "sysstr.inc"

 

TinyPortal © 2005-2018