我定义了
dim aa[100] as byte;
dim str as string ; str = "123456789";
我想得到 : aa[0] = 1 ,aa[1] =2 ,…… 请问怎么写, 还有怎样将数组转换回字符串 ?
解决方案 »
- VB中如何取出存入SQL中图片
- ACCESS输出到EXCEL 的排列问题
- 桌面项目弹出“提示操作框框”
- VB高手请进!!!
- 极度困惑的问题,关于用MSHFLEXGRID的数据的具体操做???望不吝赐教!!!
- 所有CSDN的网友都应该抵制最新一期的MVP评选活动!
- 经过5个月的开发,终于出Fantasia Photo 0.90Beta版了,散分啦!
- 求教高手和斑竹。如何做一个和输入法里的软键盘一样的软键盘?
- 请问有中文版的msdn吗?
- 请问如何在VB中读取DLL中的类名?API行吗?
- 这该用什么API实现阿?在线等!!!
- SQLSERVER在导入数据时如何连接加密的ACCESS库--时刻在线,解答即结贴
aa(i)=mid(str,i,1)
next
dim aa() as byte
dim str as string
str="123456789"
aa=strconv(str,vbFromUnicode)转成字符串
for i=0 to ubound(aa)
str=str & chr(aa(i))
next
dim tempStr as String
for i=1 to 100
tempStr=tempStr & a[i]
next
不就行了吗:)
Cooly:渡完蜜月了?:)
Private Sub Form_Load()
Dim aa(200) As Byte
Dim str As String
Dim ReStr As String str = "123456789"
For I = 1 To Len(str)
aa(I) = Mid(str, I, 1)
NextFor I = 1 To Len(str)
ReStr = ReStr & aa(I)
NextMsgBox ReStr
End Sub
STR=STR & AA(I)
NEXT
aa(i)=val(mid(str,i+1,1))
next i
for i=0 to ubound(aa)
if aa(i)=0 then exit for
str=str & chr(aa(i))
next