Simplicty and flexibility!


Function::String

StringTo
StringTo(StringToSearch, StringToSearchFor)
StringTo("My String is a test string. Test is all I do","Test") -- Will return: My String is a.
retval := StringTo(MyTextField,Search) .


To search s a string up to but not including of the search string and return that substring.

Parameters


SearchString: String

String that will be searched.

StringToSearchFor:

The match we are looking for.

Returns/Result


String(255): String up to but not including the search value.

Examples


Reference

See Also


StringBetween()

StringFrom()
MemoStringBetween()
MemoStringTo()
MemoStringFrom()

On the forum about StringTo

Solution:How to align data on the right on a text field with FixedWidth() and StringTo().

Download Sample Thank you for giving us such a brilliant opportunity to show of some of the new and sadly not so well known functions in...

Product: Dataease [{8}]FIVE. Written by DataEase 13/02/15 at 18:13:40

Re:Solution:How to align data on the right on a text field with FixedWidth() and StringTo().

Great! It works well. I have another questiom. I have to format a field in this way "000000000.00" in a fixed text field within a length 12 char (padded with zeroes) . The input field is simply a number with 2 decimals. Take in mind that I'm in Italy...

Product: Dataease [{8}]FIVE. Written by Marco Marchesi 27/02/15 at 09:53:56

On the blog about StringTo

New Function in 8 - MemoStringTo() - Copy from start of memo up to search string. (Ver 8.0.0.191)

We have soon come full circle with our new Memo and String manipulation functions but there is a few left on the list.Today we have finalised MemoStringTo() which will be complemented by MemoStringFrom() an...

Product: Dataease [{8}]FIVE. Written by DataEase 11/01/13 at 12:20:38

New Function in 8 - StringTo() - Return the content of a string from start up to Search (Ver. 8.0.0.1195)

This is the string version of MemoStringTo() and the complimentary functions are MemoStringFrom() and MemoStringBetween().All Memo functions manipulate another field when all String functions return a string directly from the functio...

Product: Dataease [{8}]FIVE. Written by DataEase 11/01/13 at 12:33:39

Developer Tips! FixedWidth() and StringTo() in practice ...

Download Sample Thank you for giving us such a brilliant opportunity to show of some of the new and sadly not so well known functions in...

Product: Dataease [{8}]FIVE. Written by DataEase 13/02/15 at 18:56:43


dg3_HelpView