1. Technology

Your suggestion is on its way!

An email with a link to:

http://delphi.about.com/od/beginners/l/blrtlmain.htm

was emailed to:

Thanks for sharing About.com with others!

Delphi RTL Quick Reference
 Routine of the Day 

The raw power of Delphi is based on a considerable amount of its Run Time Library functions and procedures. Run Time Library, or VCL routines are functions and procedure that are built into Delphi. This section of About Delphi Programming site provides a through example-reference to the RTL capabilities of Delphi.

In order to run, a Delphi application needs a lot of background information, such as how to interact with the operating system and how to create forms and components, such as buttons and edit boxes. This information is contained in various unit files that are a standard part of Delphi. This collection of units is referred to as the RTL (run time library). The RTL contains a very large number of functions and procedures for you to use.

Browse Delphi's RTL ....
Every routine is presented with a routine header and is described in a few to-the-point words, with sample code plus a link to some "real code" article.

Note 1: If you need help with any Delphi RTL function not (already) explained here, feel free to ask for help!

Note 2: If you are new to Delphi, first read the "Using Delphi's RTL routines" article.

Routines By Category
Arithmetic routines
Business and finance routines
Command line utilities
Character manipulation routines
Date/Time routines
Dialog and Message routines
File Management Routines
File Name Utilities
Flow Control Routines
Floating point conversion routines
Geometric routines
Measurement conversion routines
Miscellaneous routines
Numeric formatting routines
Ordinal routines
Pointer and address routines
Random number routines
Range Handling
Set handling routines
String handling routines
String formating routines
Text file routines
Type conversion routines

Routines By Unit
Classes DateUtils Dialogs Math Masks FileCtrl System StrUtils SysUtils Types

Alphabetically
A B C D E F G H I L M N O P Q R S T U V W Y

 

Routine of the Day If you've missed: LeftStr LogN Poly DayOfTheWeek MaxValue MinValue * MaxIntValue MinIntValue

RightStr

unit
StrUtils
category
string handling routines

declaration
function RightStr(const AString: AnsiString; const Count: Integer): AnsiString; overload;
function RightStr(const AString: WideString; const Count: Integer): WideString; overload;

description
Returns a string containing a specified number of characters from the right side of a string.

AString represents a string expression from which the rightmost characters are returned. Count indicates how many characters to return. If greater than or equal to the number of characters in AString, the entire string is returned.

example
var s : string;
	
s := 'ABOUT DELPHI PROGRAMMING';
s := RightStr(s,5);

// s = 'MMING'

in real code
String Types in Delphi
Understanding and managing string data types in Delphi's Object Pascal. Learn about differences between Short, Long, Wide and null-terminated strings.

see also
LeftStr, Pos, Length, Copy,

©2014 About.com. All rights reserved.