Copy (Text, 1, up to white space)

0

I have a text (456/2017 1.1 Know the Countries) and sometimes I have (45/17 1.1 .....) how do I get the copy command (Text, 1, white space)?

    
asked by anonymous 30.06.2017 / 22:30

1 answer

2

Use the POS function to return the position of the first character espaço :

Copy(Texto, 1, POS(' ', Texto) - 1);
    
30.06.2017 / 22:39