|
Web+ Tutorial
|
Lesson 3.3 - Output Formatting Functions
- Description
- Each of the following functions returns data in a certain format.
- Syntax
#Format(expression, format)# #DateFormat(expression)# #TimeFormat(expression)# #NumberFormat(expression)# #DecimalFormat(expression)# #DollarFormat(expression)# #YesNoFormat(expression)# #ParagraphFormat(expression)# #StripCR(expression)# #HTMLCodeFormat(expression)# #HTMLEditFormat(expression)# #ParameterExists(expression)# #PreserveSingleQuotes(expression)# #URLEncodedFormat(expression)# #ValueList(querycolumn)# #QuotedValueList(querycolumn)#
- Agument
- /tutorial/argument/arg11.wml
- Example
#Format(12345, "scientific")# #DateFormat(CurrentDate())# #TimeFormat(CurrentTime())# #NumberFormat(12345)# #DecimalFormat(12345.67)# #DollarFormat(12345.67)# #YesNoFormat(1)# #ParagraphFormat(text)# #StripCR(text)# #HTMLCodeFormat(temp)# #HTMLEditFormat(temp)# #ParameterExists(CustID)# #PreserveSingleQuotes(CustID)# #URLEncodedFormat(http://www.webplus.com)# #ValueList(test.UserName)# #QuotedValueList(test.UserName)#
- Exercise
-
You can try out some Web+ code of your own here.
|
|