From Clomosy Docs
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert"> | |||
function clStrToLan(const S:String):String; | |||
</div> | |||
The clStrToLan function operates based on the language setting of the device where the application is being used. It processes by using the vertical bar '|' as a separator. The sentence on the left side of the separator is defined in English, while the one on the right side is defined in Turkish.<br> | |||
<b>Example</b><br> | |||
<b>TRObject Syntax</b><br> | |||
<pre> | |||
var | |||
S : String; | |||
{ | |||
S = clStrToLan('Ok|Tamam'); | |||
ShowMessage(S); | |||
} | |||
</pre> | |||
<b>Base Syntax</b><br> | |||
<pre> | |||
var | |||
S : String; | |||
begin | |||
S := clStrToLan('Ok|Tamam'); | |||
ShowMessage(S); | |||
end; | |||
</pre> | |||
:' | <b>Output:</b><br> | ||
If the device's language is Turkish;<br> | |||
<div class="alert alert-success" role="alert" data-bs-theme="light"> | |||
Tamam | |||
</div> | |||
If the device's language is English;<br> | |||
<div class="alert alert-success" role="alert" data-bs-theme="light"> | |||
Ok | |||
</div> | |||
<h2> See Also </h2> | |||
* [[ | * [[System_Library#Cl_Utilities_Functions | Cl Utilities Functions]] | ||
Revision as of 06:56, 10 October 2024
function clStrToLan(const S:String):String;
The clStrToLan function operates based on the language setting of the device where the application is being used. It processes by using the vertical bar '|' as a separator. The sentence on the left side of the separator is defined in English, while the one on the right side is defined in Turkish.
Example
TRObject Syntax
var
S : String;
{
S = clStrToLan('Ok|Tamam');
ShowMessage(S);
}
Base Syntax
var
S : String;
begin
S := clStrToLan('Ok|Tamam');
ShowMessage(S);
end;
Output:
If the device's language is Turkish;
Tamam
If the device's language is English;
Ok