|
<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > String functions > Wrap$ |
Description
Surround a string with Left_Str and and Right_Str strings.
Syntax
s = Wrap$(StringExpression, Left_Str [, Right_Str])
Returns
String
Parameters
Name |
Type |
Optional |
Meaning |
StringExpression |
String |
No |
The string to parse. |
Left_Str |
String |
No |
String that will be pre pended |
Right_Str |
String |
Yes |
String that will be post pended If not specified, Left_Str string will be used both for left and right wrapping |
Remarks
Restrictions
See also
Examples
'---Returns "MyName"
String s = WRAP$("'MyName'", $SQ)