本文整理自网络,侵删。
procedure TForm1.btn1Click(Sender: TObject);var s: string;begin s := 'abcdefghijkilkjasldnbG'; if s[1]='a' then ShowMessage('a 在开始位置'); if s[Length(s)]='G' then ShowMessage('G 在最后一位');end;
相关阅读 >>
Delphi代码,直截注入别的进程,之后直截运行在别的进程中的代码!
Delphi firemonkey在画布上绘制 imagelist图像
Delphi removewhitespaces 过滤字符串所有空格
更多相关阅读请进入《Delphi》频道 >>