Delphi Programming

  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

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Delphi Programming

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

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

All rights reserved.