Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object String Methods > Clib.rsprintf() MethodThis method returns a formatted string. SyntaxClib.rsprintf([formatString] [,var1, var2, ..., varn]) ReturnsA string formatted according to formatString. UsageClib.rsprintf() can return string or numeric literals that appear as parameters. The format string contains character combinations indicating how following parameters are to be treated. For information on format strings used with Clib.rsprintf(), see Table 33 in the section Clib.asctime() Method. If there are variable parameters, the number of formatting sequences must match the number of variables. Characters are returned as read until a percent character (%) is reached. The percent character indicates that a value is to be printed from the parameters following the format string. ExampleEach of the following lines shows an rsprintf example followed by the resulting string: var TempStr = Clib.rsprintf("I count: %d %d %d.",1,2,3) //"I count: 1 2 3" See Also |
Siebel eScript Language Reference |