How to replace the "!" on edit?

This is how it works:

s := StringToItems(s, '!'); 

I do this:

 s := StringToItems(s, edit1.text); 

And I get the error:

 Incompatible types: 'Char' and 'TCaption' 

I understand this because the string consists of characters ....

    1 answer 1

    That's right - the string consists of characters. If the function expects one character at the input, you can do this:

     s := StringToItems(s, edit1.text[1]); 
    • Grateful to you for the hint. Exactly, the function expects one character at the input. And the parameter [1] allows you to read this symbol from edit1. Now I understood my mistake. - Tatyana