Programming

Programming

Tags:C BuilderConvert

Convert Functions.

Converts a measurement from one set of units to another.

Unit: ConvUtils

Category: measurement conversion routines extern PACKAGE double __fastcall Convert(const double AValue, const TConvType AFrom, const TConvType ATo); extern PACKAGE double __fastcall Convert(const double AValue, const TConvType AFrom1, const TConvType AFrom2, const TConvType ATo1, const TConvType ATo2);

Description

Call Convert to convert the value AValue from one set of...

Programming - C++Builder

Tags:C BuilderConvertMeasurements

The ConvUtils unit declares a general-purpose Convert function that you can use to convert a measurement from one set of units to another. You can perform conversions between compatible units of measurement such as feet and inches or days and weeks. Units that measure the same types of things are said to be in the same conversion family. The units you're converting must be in the same conversion family. For information on doing conversions, see Performing...

Programming - C++Builder

Tags:C BuilderTcanvasTmemo

This article will tell you how to manipulate the printer to print in C++Builder program and will also give you an example program of printing codes.

Technically speaking, the TPrinter class does not belong to BaseCLX because there are two separate versions, one for the VCL (in the Printers unit) and one for CLX (in the QPrinters unit). The VCL TPrinter object encapsulates details of Windows printers. The CLX TPrinter object is a paint device that paints on a...

Programming - C++Builder

Tags:C BuilderStrings

The BaseCLX runtime library provides many specialized string-handling routines specific to a string type. These are routines for wide strings, AnsiStrings, and null-terminated strings (char *). Routines that deal with null-terminated strings use the null-termination to determine the length of the string. The following topics provide an overview of many of the string-handling routines in the runtime library: Wide character routines  Commonly used routines for...

Programming - C++Builder

Tags:C BuilderTstringlist

Operations commonly performed on string lists include: Counting the strings in a list Accessing a particular string Finding the position of a string in the list Iterating through strings in a list Adding a string to a list Moving a string within a list Deleting a string from a list Copying a complete string list

Counting the strings in a list

The Strings array property contains the strings in the list, referenced by a zero-based...

Programming - C++Builder

Tags:C BuilderTstringlist

One of the most commonly used types of list is a list of character strings. Examples include items in a combo box, lines in a memo, names of fonts, and names of rows and columns in a string grid. BaseCLX provides a common interface to any list of strings through an object called TStrings and its descendants such as TStringList and THashedStringList. TStringList implements the abstract properties and methods introduced by TStrings, and introduces properties, events...

Programming - C++Builder

Tags:C BuilderCbuilderDelphi

Although the various list classes contain different types of items and have different ancestries, most of them share a common set of methods for adding, deleting, rearranging, and accessing the items in the list.

Adding list items

Most list classes have an Add method, which lets you add an item to the end of the list (if it is not sorted) or to its appropriate position (if the list is sorted). Typically, the Add method takes as a parameter the item you are...

Programming - Delphi

Tags:C BuilderCbuilderDelphiTstringlist

This article give you descriptions to the TCollection, TStringList and THashedStringList in Delphi / C++Builder. These base vcl/clx component are very useful in programming.

TCollection

TCollection is a container for TCollectionItem objects.

TCollection is in Unit Classes.

Description

Each TCollection holds a group of TCollectionItem descendants. TCollection maintains an index of the collection items in its Items array. The Count property contains...

Programming - Delphi

Tags:C BuilderCbuilderClxDelphiIntroductionTbucketlistTlistTthreadlistVcl

TObjectBucketList

TObjectBucketList is a simple hash table that stores objects that are identified by other objects.

TObjectBucketList is in Unit Contnrs.

Description

Use TObjectBucketList as a simple hash table to store objects that are indexed by other objects. TObjectBucketList includes methods to add, remove, and locate items in the list, as well as a method that executes a callback for every item in the...

Programming - Delphi

More Articles...

Page 9 of 13

9