Module cFormatter.pkg
****************************************************************************//
//
$File name : cFormatter.pkg //
$File title : cFormatter class (private class) //
$Author(s) : John Tuohy //
//
Confidential Trade Secret. //
Copyright 1999 Data Access Corporation, Miami FL, USA //
All Rights reserved //
DataFlex is a registered trademark of Data Access Corporation. //
//
$Rev History //
//
25.08.99 Created //
****************************************************************************//
cFormatter.pkg (view source)- import declarations
- cFormatter : cObject
- Construct_object()
- ParseFormat(string sFmt)
internal
parse passed format string and set temporary properties with result
- StringsLeft
- StringsRight
- StringsDigit
- IntegerbSep
- IntegeriPos
- Integeri
- IntegeriDigits
- SetFormat(string sFmt integer bCurrency)
Public: Sets a format string. Pass full format for Positve and negative in sFmt. Pass
bCurrency true is this is a currency format, false if a numeric format
e.g. Send SetFormat "$,#.##;($,#.##)" True
- StringsPos
- StringsNeg
- IntegeriPos
- stringFormat_Num(number nNumber integer iPoints integer bSep string sPrefix string sSuffix)
low level formatting. Pass parameters
- StringsLeft
- StringsRight
- StringsNumber
- StringsSep
- StringsDec
- IntegerbIsNegative
- IntegeriDec
- IntegeriLen
- IntegeriCh
- stringFormatCur(number nNumber integer iPoints)
Public: Format for currency
- StringsLeft
- StringsRight
- IntegerbSep
- stringFormatNum(number nNumber integer iPoints)
Public: Format for numeric
- StringsLeft
- StringsRight
- IntegerbSep
- stringFormatVal(number nNumber string sFmt)
Public: Format passing format string
- IntegeriPos
- IntegerbIsNeg
- StringsLeft
- StringsRight
- IntegeriPoints
- IntegerbSep
References (1):
Field References (0):
Module | Containing Symbol | Line |
---|