do
{
k = Pos(":"
if(!k)
break;
string.Delete(k,1);
while(false);
or another
for(i = 0; i < 2; i++)
string.Delete(Pos(":",1);
The first code is independent from a quantity of colon symbols and it may be used for deleting an unknown quantity of this symbols, the last code is used for deleting the only two colon chars if there exists, if it absent, the code fails
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.