Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

STRZERO( nNumber [, nWidth [, nDecimals ]] )

Purpose

Turn a number into a string with leading zeroes.

Arguments

     nNumber -- number to convert

     nWidth -- width of string

     nDecimals -- decimal places

Setup

nNumber must be a numeric expression.

Example

     STRZERO( 56.1, 5, 1  )    && returns "056.1"

Returns

nNumber expressed as a string with leading zeroes, and as many decimals as
specified if nDecimals is passed.

Side Effects

If nNumber is not a numeric expression, the program will crash.

Artful Calls

None.

Source File

AA_STRZ.PRG

Notes

This function was written by Tom Rettig, and is copyright Nantucket
Corporation. We include it because in EXTEND.LIB it is contained in
EXAMPLEP.PRG, and a call to it would pull in unnecessary code.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson