From Clomosy Docs
(Created page with "In Clomosy, you can use the clGetStringAfter function to retrieve text that comes after a character or characters in the text. The basic usage of the clGetStringAfter function is as follows: clGetStringAfter(mainText, ConditionText'): String '''Example:''' begin ShowMessage(clGetStringAfter('AAbBCC','bB')); end; '''Output:''' CC") |
No edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<div class="alert alert-ligth border border-3 border-primary-subtle rounded-5 p-4 shadow-sm" role="alert"> | |||
function clGetStringAfter(mainText,ConditionText:String):String; | |||
</div> | |||
In Clomosy, you can use the clGetStringAfter function to retrieve text that comes after a character or characters in the text. The basic usage of the clGetStringAfter function is as follows: | In Clomosy, you can use the clGetStringAfter function to retrieve text that comes after a character or characters in the text. The basic usage of the clGetStringAfter function is as follows: | ||
clGetStringAfter(mainText, ConditionText'): | <b>Example</b><br> | ||
<pre> | |||
var | |||
mainText,ConditionText,updatedText : String; | |||
{ | |||
mainText = 'AAbBCC'; | |||
ConditionText = 'bB'; | |||
updatedText = clGetStringAfter(mainText,ConditionText); | |||
ShowMessage('Updated Text: '+ updatedText); | |||
} | |||
</pre> | |||
<b>Output:</b><br> | |||
<div class="alert alert-success" role="alert" data-bs-theme="light"> | |||
Updated Text: CC | |||
</div> | |||
<h2> See Also </h2> | |||
* [[System_Library#Cl_Utilities_Functions | Cl Utilities Functions]] | |||
{{#seo:|description=Explore ClGetStringAfter on Clomosy. Learn how to use the clGetStringAfter function to extract text after specific characters in your projects.}} | |||
Latest revision as of 13:52, 15 May 2025
function clGetStringAfter(mainText,ConditionText:String):String;
In Clomosy, you can use the clGetStringAfter function to retrieve text that comes after a character or characters in the text. The basic usage of the clGetStringAfter function is as follows:
Example
var
mainText,ConditionText,updatedText : String;
{
mainText = 'AAbBCC';
ConditionText = 'bB';
updatedText = clGetStringAfter(mainText,ConditionText);
ShowMessage('Updated Text: '+ updatedText);
}
Output:
Updated Text: CC
See Also