Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > Methods Reference for Siebel VB > String Methods > Set String Format MethodThe Set String Format method returns an expression in a format that you specify. For details about how to use this method, see About Formatting Strings. FormatFormat[$](expression[, format]) For information about the dollar sign, see Usage of the Dollar Sign. The following table describes the arguments that you can use with this method. UsageThe Set String Format method formats a numeric value as a number or date and time. If you specify a numeric expression, and if you do not include the format argument, or if the format argument is null, then this method converts the number to a string without any special formatting. It can format a numeric value or a variant as a date. If it formats a numeric value as a date, then it interprets the value according to standard Visual Basic date encoding. The starting date is December 30, 1899. It represents this date as zero. It represents subsequent dates as the number of days from the starting date. If the format string does not match the Regional Settings, or if the Date in the Microsoft Windows setting is not set to the U.S. format, then the Set String Format method does not return the correct format. Example 1The following example includes tokens: Sub Button1_Click Example 2The following example calculates the square root of 2 as a double-precision, floating point value, and then displays it in scientific notation: Sub Button1_Click The following example uses multiple tokens to format the result of the Now method, which returns the current date and time on the computer clock: Sub ClickMe_Click |
Siebel VB Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |