vb中Trim(Right(Left(ValueOfString, End_Pos), End_Pos - begin_Pos + 1))什么意思
答案:1 悬赏:50 手机版
解决时间 2021-04-02 18:00
- 提问者网友:我们很暧昧
- 2021-04-01 19:56
vb中Trim(Right(Left(ValueOfString, End_Pos), End_Pos - begin_Pos + 1))什么意思
最佳答案
- 五星知识达人网友:逐風
- 2021-04-01 21:18
Trim(Right(Left(ValueOfString, End_Pos), End_Pos - begin_Pos + 1))
Right(Left(ValueOfString, End_Pos), End_Pos - begin_Pos + 1)
Left(ValueOfString, End_Pos)
a=Left(ValueOfString, End_Pos),a的值为在ValueOfString中从左边数End_Pos个字符,比如ValueOfString=" abcdef ghijklmnopqrstuvwxyz",End_Pos=8,a的值就是" abcdef "
b=Right(a,End_Pos - begin_Pos + 1),b的值为在a中从边数(End_Pos - begin_Pos + 1)个字符,假设begin_Pos=3,那么(End_Pos - begin_Pos + 1)=8-3+1=6,b=Right(a,6)=Right(" abcdef ",6)="bcdef "
c=trim(b),c的值就是b去掉两端的空格之后的值,c=trim("bcdef ")="bcdef"
Right(Left(ValueOfString, End_Pos), End_Pos - begin_Pos + 1)
Left(ValueOfString, End_Pos)
a=Left(ValueOfString, End_Pos),a的值为在ValueOfString中从左边数End_Pos个字符,比如ValueOfString=" abcdef ghijklmnopqrstuvwxyz",End_Pos=8,a的值就是" abcdef "
b=Right(a,End_Pos - begin_Pos + 1),b的值为在a中从边数(End_Pos - begin_Pos + 1)个字符,假设begin_Pos=3,那么(End_Pos - begin_Pos + 1)=8-3+1=6,b=Right(a,6)=Right(" abcdef ",6)="bcdef "
c=trim(b),c的值就是b去掉两端的空格之后的值,c=trim("bcdef ")="bcdef"
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
正方形一边上任一点到这个正方形两条对角线的 |
阴历怎么看 ? |