查找vbcrlf这个字符,找到了就删掉。也可以用replace(vbcrlf,""),将所有的回车替换为空串。
解决方案 »
- 用WebBrowser如何自动填充网页文本框?
- vb 数据库开发问题,想修改recordset调出来的第一个记录
- 今天面试了,巨不爽~
- vb中的combobox怎么实现显示的值和返回的值不一样?
- 一个关于WORD文档关闭的问题
- 有问题,请高人赐教!
- 能不能在数据库中删除一个查询或一个表?
- WinAPI中的SendMessage(hWnd,Msg,wParam,lParam)中的Msg中的数值从那里可以得到(查到)。如SB_GetRect=&H40A
- 打印问题,能在一屏上打印两列数据吗
- 毕业设计做不出来啊!救命!!!
- 这个变量语句应该怎什写?
- 刚到一家新公司上班,接了一个原来别人写的系统,关于数据库的,碰到难题请各位路大师解救
有就用Replace去掉
Instead( 源文件,vbcrlf,"")Function Instead(fString As String, iString As String, idString As String) As String
For i = 1 To Len(fString)
If Mid(fString, i, Len(iString)) = iString Then Exit For
Next i
Instead = Left(fString, i - 1) + idString + Right(fString, Len(fString) - i - Len(iString) + 1)
End Function
dim ls as string,a as string,b as string
dim i as long,j as long
ls =s
i=instr(sEnter,ls)
if i>0 then
do while i>0
j=instr(sEnter,ls)
i=len(ls)
if j>0 then
b=b & mid(ls,1,j-1)
ls=mid(ls,j+1,i-j-1)
else
b=b & ls
end if
loop
else
b=ls
end if
DleEnter=b
End Function