Foxtable(狐表)用户栏目专家坐堂 → 字符串的分割


  共有469人关注过本帖树形打印复制链接

主题:字符串的分割

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107662 积分:547625 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2024/4/8 14:05:00 [显示全部帖子]

参考:http://www.foxtable.com/webhelp/topics/0236.htm

Dim s As String = "xxxxxxxxx期限:{dateadd(申请日,d,15)}xxxxxxxxxx"
Dim a As Integer = s.IndexOf("期限:{")
If a > -1 Then
    Dim b As Integer = s.IndexOf("}", a)
    If b > -1 Then
        MsgBox(s.Substring(a + 3, b - a - 2))
    End If 
End If 

 回到顶部