最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

pb将字符串s中的c1替换为c2

IT圈 admin 2浏览 0评论

pb将字符串s中的c1替换为c2

//将字符串s中的c1替换为c2
if isnull(s) or s = "" then return ''
if c1=c2 then return s
if isnull(c2) then return s

long l
do while True
    l=pos(s,c1)
    if l=0 then return s
    s=replace(s,l,len(c1),c2)
loop

pb将字符串s中的c1替换为c2

//将字符串s中的c1替换为c2
if isnull(s) or s = "" then return ''
if c1=c2 then return s
if isnull(c2) then return s

long l
do while True
    l=pos(s,c1)
    if l=0 then return s
    s=replace(s,l,len(c1),c2)
loop

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论