|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
专业性的服务。有的ASP商提供垂直型的应用服务,针对某一特定行业提供应用服务。FormatCurrencyFunction
Returnsanexpressionformattedasacurrencyvalueusingthecurrencysymboldefinedinthesystemcontrolpanel.
FormatCurrency(Expression[,NumDigitsAfterDecimal][,IncludeLeadingDigit][,UseParensForNegativeNumbers][,GroupDigits]]]])
Arguments
Expression
Required.Expressiontobeformatted.
NumDigitsAfterDecimal
Optional.Numericvalueindicatinghowmanyplacestotherightofthedecimalaredisplayed.Defaultvalueis-1,whichindicatesthatthecomputersregionalsettingsareused.
IncludeLeadingDigit
Optional.Tristateconstantthatindicateswhetherornotaleadingzeroisdisplayedforfractionalvalues.SeeSettingssectionforvalues.
UseParensForNegativeNumbers
Optional.Tristateconstantthatindicateswhetherornottoplacenegativevalueswithinparentheses.SeeSettingssectionforvalues.
GroupDigits
Optional.Tristateconstantthatindicateswhetherornotnumbersaregroupedusingthegroupdelimiterspecifiedinthecomputersregionalsettings.SeeSettingssectionforvalues.
Settings
TheIncludeLeadingDigit,UseParensForNegativeNumbers,andGroupDigitsargumentshavethefollowingsettings:
ConstantValueDescription
TristateTrue-1True
TristateFalse0False
TristateUseDefault-2Usethesettingfromthecomputersregionalsettings.
Remarks
Whenoneormoreoptionalargumentsareomitted,valuesforomittedargumentsareprovidedbythecomputersregionalsettings.Thepositionofthecurrencysymbolrelativetothecurrencyvalueisdeterminedbythesystemsregionalsettings.
NoteAllsettingsinformationcomesfromtheRegionalSettingsCurrencytab,exceptleadingzero,whichcomesfromtheNumbertab.
ThefollowingexampleusestheFormatCurrencyfunctiontoformattheexpressionasacurrencyandassignittoMyCurrency:
DimMyCurrency
MyCurrency=FormatCurrency(1000)MyCurrencycontains$1000.00.
Requirements
</p>ASP由于使用了COM组件所以它会变的十分强大,但是这样的强大由于WindowsNT系统最初的设计问题而会引发大量的安全问题。只要在这样的组件或是操作中一不注意,哪么外部攻击就可以取得相当高的权限而导致网站瘫痪或者数据丢失; |
|