我设置了3个label,在某个字段里有3位的数字,我想每个一label按照顺序显示一位,如何实现??
解决方案 »
- 怎样将RichTextBox中的文本和图片一起存入数据库?
- 关于select * from A where A.Time>(select max(b.Time) as Time from B)
- 一个奇怪的问题,小弟急死了!
- 用vb6.0如何获取网页上的链接,并能用程序单击?
- 请教如何将ActiveReport生成的报表导出成其它文件,如.doc文件
- 怎么样将VB中的数组生成Matlab中的数组?
- 关于api中以WM_为前缀的常数的说明。
- 求救各位朋友:我在外地调程序.遇到点问题.我现在在网吧找到一个我需要的源代码.可是网吧没有VB.求朋友了.
- 如何防止应用程序访问远程数据库是出现掉线的情况!
- 大侠们请谈谈如何自己做一个表格控件!
- VB编辑器中为什么不支持鼠标滚轮?
- 请教将一个表内容显示到TreeView的用法
Dim s As String
Dim ss() As String
Dim a, b As Integer
s = "a b c"
ss = Split(s)
a = UBound(ss)
ReDim Preserve ss(0 To a)
For b = 0 To a
Label1(b).Caption = ss(b)
Next
End Sub
dim num as stringnum = right("000" & str(value),3) 'value 3位数, 不足3位补0a = left(num,1)
b = mid(num,2,1)
c = right(num,1)if a > b then
temp=a
a = b
b = temp
end ifif b > c then
temp = b
b = c
c = temp
end if
label1= a : lable2 = b : label3 = c '从小到大
重新写了个
Private Sub Form_Load()
Dim s As String
Dim ss() As Byte
Dim a, b As Integer
s = "123"
ss = StrConv(s, vbFromUnicode)
a = UBound(ss)
ReDim Preserve ss(0 To a)
For b = 0 To a
Label1(b).Caption = Chr(ss(b))
Next
End Sub
dim i as integer
for i=1 to len(rst(0))
label1(i-1)=mid(rst(0),i,1)
next