Delphi转换为C#时小知识点

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

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

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

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

3      
原文地址:https://www.cnblogs.com/guangfangxiaokeai/p/13157185.html