PB_ReplaceAll

时间:2016-01-18 02:53:23
【文件属性】:

文件名称:PB_ReplaceAll

文件大小:60KB

文件格式:RAR

更新时间:2016-01-18 02:53:23

powerbuilder pb11.5.1

将一段文字中的字符串全部替换 PowerBuilder ReplaceAll


【文件预览】:
ReplaceAll.txt
ReplaceAll.jpg

网友评论

  • 就这!你也好意思收50分,穷疯了吧 long ll_pos, ll_start, ll_get_len string ls_retval //Pos ( string1, string2 {, start } ) ll_start=1 ll_pos = pos( as_source, as_old_str, ll_start) ls_retval='' do while ll_pos>0 ll_get_len = ll_pos - ll_start ls_retval += Mid(as_source, ll_start, ll_get_len) ls_retval += as_new_str ll_start = ll_pos + Len(as_old_str) ll_pos = pos( as_source, as_old_str, ll_start) loop ls_retval += Mid(as_source, ll_start) Return ls_retval[face]emoji:067.png[/face][face]emoji:067.png[/face][face]emoji:067.png[/face][face]emoji:067.png[/face][face]emoji:067.png[/face][face]emoji:067.png[/face][face]emoji:067.png[/face][face]emoji:067.png[/face][face]emoji:056.png[/face]
  • 没什么特别的啊,这代码早就写过了