Format

From Catglobe Wiki
Jump to: navigation, search



format

Format the first parameter with the other parameters given and append to current string

Syntax

format("{0}", param);

Arguments

param: any type

Return type

string

Examples

string firstName = "A";
string middleName = "Van";
string lastName = "Nguyen";
string fullName = format("My name is {0} {1} {2}", firstName, middleName, lastName);//My name is A Van Nguyen

Availability

From June 2017