C
C
Chvalov2015-06-15 22:01:39
Delphi
Chvalov, 2015-06-15 22:01:39

How to trim last 3 characters in Delphi?

Tell me how to trim the last 3 characters in Delphi
Here is a piece of code:
BatchingEdit.Text:=p^.gr.Batching;
p^.gr.Batching here is my text that needs to be trimmed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Vitrenko, 2015-06-15
@Chvalov

BatchingEdit.Text := copy(p^.gr.Batching, 1, length(p^.gr.Batching)-3);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question