Visual Basci中的几个函数split(),ubound(),lbound(),instr(),mid().,VisualBa,isualBas,sualBasc,ualBasci,alBasci中,lBasci中的,Basci中的几,asci中的几个,sci中的几个函,ci中的几个函数,i中的几个函数s,中的几个函数sp,的几个函数spl,几个函数spli,个函数split,函数split,,数split,u,split,ub,plit,ubo,lit,ubou,it,uboun,t,ubound,,ubound,,ubound,l,bound,lb,ound,lbo,und,lbou,nd,lboun,d Visual Basci中的几个函数split(),ubound(),lbound(),instr(),mid().----编程资料集中营--八角123--bajiao123.com
编程资料集中营
 | 网站首页 | 文章中心 | 编程资料2 | 软件下载 | BT下载 | 八卦星闻 | 音乐在线 | 在线游戏 | 免费电影 | 进入问吧 | 
Visual Basci中的几个函数split(),ubound(),lbound(),instr(),mid().,VisualBasci中的几个函数:1.(包含子字符串和分隔符的字符串表达式,[分隔符],[要返回的子字符串数],[数字值表示判别子字符串时使用的比较方式]),[]部分为可选部分。该函数返回一个以零为下标的一维数组,它包含指定数目的子字符串。例:dimxxasvariantxx=split("helloworld","",
您现在的位置: 编程资料,学习资料,c,c++,vc,vc++,java,jsp,j2ee,j2me,asp,php >> 文章中心 >> .NET 专区 >> NET 技术 >> 文章正文
【字体:
Visual Basci中的几个函数split(),ubound(),lbound(),instr(),mid().   进入问吧

本站地址:http://www.bajiao123.com

作者:admin    文章来源:不详    点击数:    更新时间:2007-6-1    

Visual Basci中的几个函数split(),ubound(),lbound(),instr(),mid().

                                     Visual Basci中的几个函数:
1.(包含子字符串和分隔符的字符串表达式 ,[分隔符],[要返回的子字符串数],[数字值表示判别子字符串时使用的比较方式]),[]部分为可选部分。该函数返回一个以零为下标的一维数组,它包含指定数目的子字符串。
    例:
    dim xx as variant
    xx=split("hello world"," ")'将hello world 分隔为hello和world 
    text1.text= xx(0) '返回hello
    text2.text=xx(1) '返回world
2.(数组名),该函数返回一个 Long 型数据,其值为指定的数组维可用的最大下标
   数组名),返回一个 Long 型数据,其值为指定数组维可用的最小下标。
    例:
    dim xx as variant
    xx=split("hello world"," ")
    text1.text=ubound(xx)  '返回1
    text2.text=lbound(xx)  ‘返回0
3([start, ]string1, string2),该函数返回 Variant (Long),指定一字符串(string2)在另一字符串中(string1)最先出现的位置,如果没有找到返回0。[start,]为可选参数,表示搜索的开始位置。
    例:
    dim xx as string
    xx="hello world"
    text1.text=instr(xx,"o") '返回5
    text2.text=instr(6,xx,"o") '返回8,从第6个字符开始查找
4.(string, start[, length]),返回Variant (String),其中包含字符串(string)中指定长度[,length]的字符,start为开始位置。其中的[,length]为可选参数不指定长度,则返回start后的所有字符。
      例:
      dim xx  as sting
      xx="hello world"
      text1.text=mid(xx,1,5)'返回hello
      text2.text=mid(xx,1)  '返回hello world
进入问吧

本站地址:http://www.bajiao123.com

文章录入:admin    责任编辑:admin 
高级搜索
编程资料集中营