From Clomosy Docs

(Created page with "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: clGetStringTo(mainText, ConditionText'): String '''Example:''' begin ShowMessage(clGetStringTo('AAbBCC','CC')); end; '''Output:''' AAbB")
 
No edit summary
Line 10: Line 10:
'''Output:'''
'''Output:'''
  AAbB
  AAbB
= See Also =
* [[Controls| Controls]]

Revision as of 06:31, 24 January 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:

clGetStringTo(mainText, ConditionText'): String

Example:

begin
  ShowMessage(clGetStringTo('AAbBCC','CC'));
end;

Output:

AAbB

See Also