Delphi转换为C#时小知识点

序号 Delphi c# .Net 备注
1 CHR(8) \b 退格符
2 Pos(CHR(8),strText) strText.IndexOf("\b")

第一个退格符在strText中的位置(返回int类型)

位置:Delphi从1开始数,.Net从0开始数

所以,当字符串中没有这个符号的时候Delphi=0,.Net=-1

3      

 

posted @ 2020-06-18 13:55  官方小可爱  阅读(253)  评论(0编辑  收藏  举报