Kaydet (Commit) ee4a50e5 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS ab42 (1.6.56); FILE MERGED

2007/12/21 11:16:36 ab 1.6.56.1: #151250# Support date/time formats
üst a42c9b7f
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: sbxform.cxx,v $ * $RCSfile: sbxform.cxx,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: hr $ $Date: 2007-06-27 14:30:36 $ * last change: $Author: vg $ $Date: 2008-01-28 14:01:00 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -1151,3 +1151,26 @@ String SbxBasicFormater::BasicFormat( double dNumber, String sFormatStrg ) ...@@ -1151,3 +1151,26 @@ String SbxBasicFormater::BasicFormat( double dNumber, String sFormatStrg )
return sReturnStrg; return sReturnStrg;
} }
BOOL SbxBasicFormater::isBasicFormat( String sFormatStrg )
{
if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_GENERALNUMBER ) )
return TRUE;
if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_CURRENCY ) )
return TRUE;
if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_FIXED ) )
return TRUE;
if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_STANDARD ) )
return TRUE;
if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_PERCENT ) )
return TRUE;
if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_SCIENTIFIC ) )
return TRUE;
if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_YESNO ) )
return TRUE;
if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_TRUEFALSE ) )
return TRUE;
if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_ONOFF ) )
return TRUE;
return FALSE;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment