Apr 25, 2025
sTemp with value "Hello World".
sTemp[5] returns 'O'.Length Function
Length(sTemp) returns an integer.Length("Hello World") returns 11.Pos Function
Pos("WR", sTemp) returns 7.Pos("wr", sTemp) would return 0 if not found.Copy Function
Copy(sourceStr, startPos, numChars).Copy(sTemp, 3, 5) results in "llo W".numChars exceeds the string length, it copies up to the end of the string.UpperCase and LowerCase Functions
UpperCase(sTemp) or LowerCase(sTemp).UpperCase("Hello World") becomes "HELLO WORLD".LowerCase("Hello World") becomes "hello world".