ISDBApplication::Format: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
==[[SDBApplication#ISDBApplication_members|ISDBApplication]]::Format==
{{MethodDeclaration|SDBApplication|ISDBApplication|Function Format(Text As String, Param1, Param2, Param3) As String}}


''Function Format(Text As String, Param1, Param2, Param3) As String''
===Parameters===


===Parameters===
{{MethodParameters  
{{MethodParameters
  |Text |String |Text with parameters to be replaced
   
|Param1 |Variant |Parameter 1 (number or string)
|Text |String |Text with parameters to be replaced
|Param2 |Variant |Parameter 2 (number or string)
|Param1 |Variant |Parameter 1 (number or string)
|Param3 |Variant |Parameter 3 (number or string)}}
|Param2 |Variant |Parameter 2 (number or string)
|Param3 |Variant |Parameter 3 (number or string)}}


===Method description===
===Method description===
Works similarly to c printf function, modifies text with specified parameters. It's fixed to three parameters, use some dummy ones if you need less of them.
Works similarly to c printf function, modifies text with specified parameters. It's fixed to three parameters, use some dummy ones if you need less of them.


===Example code===
===Example code===                  
<source lang="vb">SDB.Format( "Number is: %d and string is: %s", 10, "Hello", 0)</source>
<source lang="vb">SDB.Format( "Number is: %d and string is: %s", 10, "Hello", 0)</source>


===Related Items===
=== Related Topics ===  
[[SDBApplication::LocalizedFormat]]
 
*[[ISDBApplication::LocalizedFormat]]  


[[Category:Scripting|{{PAGENAME}}]]
[[Category:Scripting|{{PAGENAME}}]]

Latest revision as of 13:30, 21 March 2007

CoClass SDBApplication, Interface ISDBApplication

Function Format(Text As String, Param1, Param2, Param3) As String


Parameters

Name Type Description
Text String Text with parameters to be replaced
Param1 Variant Parameter 1 (number or string)
Param2 Variant Parameter 2 (number or string)
Param3 Variant Parameter 3 (number or string)


Method description

Works similarly to c printf function, modifies text with specified parameters. It's fixed to three parameters, use some dummy ones if you need less of them.

Example code

SDB.Format( "Number is: %d and string is: %s", 10, "Hello", 0)

Related Topics