Appframe Knowledge Base


1 hits
0

Formatting a string in JavaScript like you would in .NET with String.Format

//Format string
var vRecord = 7,vTotalRecords=10;
af.common.formatString("Viewing record {0} of {1}", vRecord, vTotalRecords);
//Returns Viewing record 7 of 10

common web · Perma link post comment Posted by: Øystein Kaldestad (12-apr-2013)