string static access



string static access
Smart pascal source code
var s := 'hello'; var i := 2; WriteLn(s[1]); WriteLn(s[i]); WriteLn(Copy(s, 1, 1)); WriteLn(Copy(s, i, 1)); WriteLn(Copy(s, 1, 2)); WriteLn(Copy(s, i, i)); {<<< RESULT - CONSOLE LOG >>> ----------------------------- h e h e he el ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}