The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



InputFormat


Unit:SDL_numio
Class:TNumIO
Declaration:property InputFormat: TInFormat;

The property InputFormat determines the format of the numeric data accepted by the edit box:

itInt Integer numbers.
itFloat Floating point numbers.
itFixPoint Fixed point decimal numbers. The number of decimal places is determined by the property FixPointDecPlaces.
itExp Exponential notation.
itBin Binary format.
itOct Octal format.
itHex Hexadecimal format.
itDynamic Leaves the choice of the numeric format to the user. Any of the above formats may be used. Binary, octal, or hexadecimal values may be entered by using one of the following prefix characters: % for binary numbers, & for octal, and $ for numbers. Negative numbers may only be entered using a decimal format.

Hint: In the Light Edition the formats itBin, itOct, and itHex are not available.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): numin



Last Update: 2012-Oct-20