The amazing fact in Delphi is the index on array and string differs ! This is really shock, it shocked me almost put hands in my mouth. 嚇得我吃手手...
In Delphi, Strings are 1-indexed, but arrays are 0-indexed.
如果要存取 S 的第一個字元要使用 S[1] 才會是正確的字元。
If S is assigned as a string variable, the first character would be S[1] not S[0];
沒有留言:
張貼留言