VB中 dim a as integer ,如果在某个事件中想写这样的代码,text1(a).forcolor=***,
来源:学生作业帮 编辑:神马作文网作业帮 分类:数学作业 时间:2024/09/22 07:33:35
VB中 dim a as integer ,如果在某个事件中想写这样的代码,text1(a).forcolor=***,但是a 的范围是
但是a的范围是 for a=0 to 15 和 for a =18 to 20,现在我这样写的:
for a=0 to15
text(a).forecolor=***
next
for a =18 to 20
text(a).forecolor=***
next
如果变量a需要断开分了很多段就要写很多次,能简化吗
后面的***是相同的参数
但是a的范围是 for a=0 to 15 和 for a =18 to 20,现在我这样写的:
for a=0 to15
text(a).forecolor=***
next
for a =18 to 20
text(a).forecolor=***
next
如果变量a需要断开分了很多段就要写很多次,能简化吗
后面的***是相同的参数
可以这样简化,但意义似乎不大
for a=0 to20
if a=18 then
text(a).forecolor=***
endif
next
再问: 没看懂,解释一下好吗
再答: 汗…… 有哪里不懂呢? 注释部分的英语意思是:把你需要执行的代码放在那里。
for a=0 to20
if a=18 then
text(a).forecolor=***
endif
next
再问: 没看懂,解释一下好吗
再答: 汗…… 有哪里不懂呢? 注释部分的英语意思是:把你需要执行的代码放在那里。
VB中 dim a as integer ,如果在某个事件中想写这样的代码,text1(a).forcolor=***,
VB b=val(text1.text)-1 dim a(b) as Integer 这样写出现 要求常数表达式
vb程序Dim a(1 To 20) As Integer,i As Integer,j As Integer
例子1.在窗体内创建文本框和按钮分别命名为Text1和command2在命令按钮下输入代码dim a as 整形a =
Dim a(9) As Integer,x As Integer,k As Integer,I As Integer R
dim a(3,2) as integer
Dim a(1 To 10) As Integer Dim i As Integer a(1) = 1 For i =
帮忙VB试题我怎么想都算不对Private Sub Command1_Click()Dim a As Integer,b
9^n+2是不是质数vb编程如下Private Sub Command1_Click()Dim a As Integer
下列代码的意思Sub Saveas()Dim Mrow%,I%,n%Dim Y As Integer'Arr = [a2
计算机语言里面dim a as integer 这句话的dim是哪个英语单词?
VB中的Dim sum As Integer语句