From Clomosy Docs

No edit summary
No edit summary
Line 6: Line 6:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</b><br>
 
<pre>
<pre>
var
var
Line 17: Line 17:
  ShowMessage('Updated Text: '+ updatedText);
  ShowMessage('Updated Text: '+ updatedText);
}
}
</pre>
<b>Base Syntax</b><br>
<pre>
var
mainText,ConditionText,updatedText : String;
begin
mainText := 'AAbBCC';
ConditionText := 'bB';
updatedText := clGetStringAfter(mainText,ConditionText);
ShowMessage('Updated Text: '+ updatedText);
end;
</pre>
</pre>



Revision as of 10:43, 13 November 2024

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:

See Also