c:=s[i];
Var Str:String = '123'; ... Str[1]//Returns 1 Str[2]//Returns 2 Str[3]//Returns 3
Lets make things simpler to understand...
Quote from: captain jaster on November 24, 2010, 06:49:11 pmLets make things simpler to understand...Let's make it less simple Code: Pascal [Select][+][-]var s: ansistring;begin s := '5€'; showmessage(s[2]);end;This does nót display the Euro symbol.
This does nót display the Euro symbol.
ShowMessage(AnsiToUTF8(s)[2]);
What about:Code: [Select]ShowMessage(AnsiToUTF8(s)[2]);
Please don't spread misinformation about UTF8. It's confusing enough...
r: string;s: string;c: char;s:=rightstr(r,1);c:= ????(s);