用vb.net如何能实现 输入两个数字得出两个数字之间的所有数字
展开全部
textbox1.text=1
textbox2.text=5
----------------------------------
dim strartValue as integer
dim endValue as integer
stratvalue=textbox1.text
endValue=textbox2.text
dim retValue as string
retValue=""
for i as integer=stratValue to endvalue
retValue=retvalue+i.tostring()
next
retValue 的内容就是你需要的内容
textbox2.text=5
----------------------------------
dim strartValue as integer
dim endValue as integer
stratvalue=textbox1.text
endValue=textbox2.text
dim retValue as string
retValue=""
for i as integer=stratValue to endvalue
retValue=retvalue+i.tostring()
next
retValue 的内容就是你需要的内容
展开全部
Dim startValue, endValue As Integer
Dim Result As String = ""
startValue = Val(TextBox1.Text)
endValue = Val(TextBox2.Text)
For i As Integer = startValue To endValue
Result += i.ToString
Next
Debug.WriteLine(Result)
Dim Result As String = ""
startValue = Val(TextBox1.Text)
endValue = Val(TextBox2.Text)
For i As Integer = startValue To endValue
Result += i.ToString
Next
Debug.WriteLine(Result)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询