开发者

Remove trailing "-" characters from a string in VB6

I need to 开发者_运维技巧remove trailing "-" characters from a string in VB6. How can i achieve this? Any help or hints are appreciated.


This should work, but it will execute relatively slowly. I would think the speed will be acceptable in many situations.

Do While Right(s, 1) = "-"
  s = Left(s, Len(s) - 1)
Loop
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜