I guess the last post remarks the way to do it around. Now I understand, too, why sometimes I had the problem of a string not really returned changed.
So I now always do the following, to be sure:
AnyString = AnyString.anystring_function;
NewString = AnyString;
And NewString is ok.
I had it like this before:
AnyString.anystring_function; //the new form of AnyString is returned by the function, but does not modify the string itself.
NewString = AnyString;
and NewString was the UNMODIFIED AnyString.
Ok, what works, too is
NewString = AnyString.anystring_function;
But, still, I need a new variable.
So that is, I think, now clear with the "reference to a COPY" explanation of You, Ion.
Thanx!
Oh, btw., the SetLength() function works like this:
AnyString.SetLength(2);
and AnyString.Length() will be = 2;
Michael
is that explainable, too?