vb 程序设计"求8个随机二位数",30分钟内,急需,是输入在text里的
2个回答
展开全部
竖着排列要把text1的multiline属性设为true
Private Sub Command1_Click()
Text1.Text = ""
Randomize
For i = 1 To 8
Text1.Text = Text1.Text & Int(Rnd * 90) + 10 & chr(13)+chr(10)
Next
End Sub
Private Sub Command1_Click()
Text1.Text = ""
Randomize
For i = 1 To 8
Text1.Text = Text1.Text & Int(Rnd * 90) + 10 & chr(13)+chr(10)
Next
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command1_Click()
Text1.Text = ""
Randomize
For i = 1 To 8
Text1.Text = Text1.Text & Int(Rnd * 90) + 10 & " "
Next
End Sub
Text1.Text = ""
Randomize
For i = 1 To 8
Text1.Text = Text1.Text & Int(Rnd * 90) + 10 & " "
Next
End Sub
追问
怎么让八个数竖着排列
追答
Private Sub Command1_Click()
Text1.Text = ""
Randomize
For i = 1 To 8
Text1.Text = Text1.Text & Int(Rnd * 90) + 10 & vbcrlf
Next
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询