Core Function VSPrintf

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> VSPrintf( <format control>, <params>... ) </pre> === Description === Returns a formatted string (similar to the C sprintf() function) but accepts arrays as the arguments....")
Newer edit →

Revision as of 10:03, 1 September 2013

VSPrintf( <format control>, <params>... )

Contents

Description

Returns a formatted string (similar to the C sprintf() function) but accepts arrays as the arguments.

Parameters

format control

See SPrintf( <format control>, <params> ) for format control.

params

One or more arrays to pass as the arguments to VPrintf()

Return Value

None.

Remarks

This is basically a wrapper for the SPrintf( <format control>, <params> ) but accepts arrays of arguments and does them in sequence.

See SPrintf( <format control>, <params> ) for remarks.

Example

See SPrintf( <format control>, <params> ) for example.

print vsprintf("%04d-%02d-%02d", split('1988-8-1', '-')); // 1988-08-01
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox