From Clomosy Docs

No edit summary
No edit summary
Line 26: Line 26:
<h2> See Also </h2>
<h2> See Also </h2>
* [[System_Library#Cl_Utilities_Functions | Cl Utilities Functions]]
* [[System_Library#Cl_Utilities_Functions | Cl Utilities Functions]]
{{#seo:|description=clGetStringTo retrieves text from the beginning of a string up to a specified condition, stopping before the defined characters.}}

Revision as of 07:51, 24 December 2024

In Clomosy, you can use the clGetStringTo function to retrieve text that precedes a character or characters in the text. The basic usage of the clGetStringTo function is as follows:

Example

var
 mainText,ConditionText,updatedText : String;

{
 mainText = 'AAbBCC';
 ConditionText = 'CC';
 updatedText = clGetStringTo(mainText,ConditionText);
 ShowMessage('Updated Text: '+ updatedText);
}

Output:

See Also