J
Justin
Hi,
I'm looking for the asp equivalent of PHP's sprintf/printf
function...In PHP you can do this:
$format = "There are %d monkeys in the %s";
printf($format,$num,$location);
This might output, "There are 5 monkeys in the tree".
You can also specify the order of the placeholders and repeat the
placeholders without adding more arguments in the code. Argument
swapping:
$format = "The %2\$s contains %1\$d monkeys. That's a nice %2\$s full
of %1\$d monkeys.";
printf($format, $num, $location);
Output, "The tree contains 5 monkeys. That's a nice tree full of 5
monkeys."
Any suggestions to acoomplish something similar with VBScript?
Thanks
I'm looking for the asp equivalent of PHP's sprintf/printf
function...In PHP you can do this:
$format = "There are %d monkeys in the %s";
printf($format,$num,$location);
This might output, "There are 5 monkeys in the tree".
You can also specify the order of the placeholders and repeat the
placeholders without adding more arguments in the code. Argument
swapping:
$format = "The %2\$s contains %1\$d monkeys. That's a nice %2\$s full
of %1\$d monkeys.";
printf($format, $num, $location);
Output, "The tree contains 5 monkeys. That's a nice tree full of 5
monkeys."
Any suggestions to acoomplish something similar with VBScript?
Thanks