OsFormatString

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (some format conversions)
Line 1: Line 1:
{{osslfunc|
+
{{osslfunc
threat_level = Low
+
|threat_level=Low
|
+
|function_syntax=string osFormatString(string format,list params)
function_syntax = <source lang="lsl">
+
|ossl_example=<source lang="lsl">
string osFormatString(string format,list params)
+
</source>
+
|
+
ossl_example = <source lang="lsl">
+
 
//
 
//
 
//osFormatString() example, by Tom Earth.
 
//osFormatString() example, by Tom Earth.
Line 20: Line 16:
 
}
 
}
 
</source>
 
</source>
|  
+
|description=
additional_info =  
+
 
|
 
|
 
}}
 
}}

Revision as of 20:32, 1 July 2011

string osFormatString(string format,list params)
No descriptions provided
Threat Level Low
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
//
//osFormatString() example, by Tom Earth.
//
default
{
    state_entry()
    {
        string to_format = "My name is {0}. My owner is {1}. I am in the sim {2}";
        list format = [llGetObjectName(),llKey2Name(llGetOwner()),llGetRegionName()];
        llOwnerSay(osFormatString(to_format, format)); 
    }
}
Personal tools
General
About This Wiki