1. Home
  2. Computing & Technology
  3. Delphi Programming
Glossary|Tips/Tricks|FREE App/VCL|Essentials|Books|Link Back
Type conversion routines
DELPHI RTL Reference

BinToHex procedure
Converts a binary value to its hexadecimal representation.

BoolToStr function
Returns a string from a boolean value.

Bounds function
Returns the TRect type variable from a rectangle given with width and height.

HexToBin procedure
Converts a string of hexadecimal digits to its binary representation.

Point function
Returns the Point type variable from two integers.

Rect function
Returns the TRect type variable from a rectangle given with top-left and bottom-right coordinate.

StrToBool function
Returns a boolean from a string value, if *possible*.

StrToBoolDef function
Returns a boolean from a string value, on error returns "Default".

StrToInt function
Converts a string to an integer.

TryStrToBool function
Converts a string to a boolean value with a Boolean success code.

TryStrToInt function
Converts a string to an integer, returns False if string does not represent a valid number.

more to come...


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?
Explore Delphi Programming
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.