输入保存问题
我有4个TEXT框TXT1
TXT2
TXT3
TXT4
现在要求是要按TXT框的顺序输才能保存
如果是先输TXT1在输TXT3然后在输TXT2则不能保存,
请问这个代码因该怎么写啊? --------------------编程问答-------------------- 把TXT2
TXT3
TXT4
先设来不可用,TXT1的onblur时判断不为空是地,TXT2设为可用
用javascript --------------------编程问答-------------------- 我要用vvb.net写!!
别告诉我用ENABLE写啊 --------------------编程问答-------------------- 记录输入的时间,保存是比较
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码)
http://feiyun0112.cnblogs.com/ --------------------编程问答-------------------- Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
Dim bools As Boolean = False
For i As Integer = 0 To 3
If Not bool(i).ToString = CStr(i + 1) Then
bools = True
Exit For
End If
Next
If bools Then
MsgBox("不能保存")
Else
MsgBox("可以保存")
End If
End Sub
Dim bool(4) As String
Dim Vio As Integer = 0
Private Sub TextBox4_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox4.TextChanged
bool(Vio) = "1"
Vio += 1
End Sub
Private Sub TextBox5_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox5.TextChanged
bool(Vio) = "2"
Vio += 1
End Sub
Private Sub TextBox6_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox6.TextChanged
bool(Vio) = "3"
Vio += 1
End Sub
Private Sub TextBox7_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox7.TextChanged
bool(Vio) = "4"
Vio += 1
End Sub
你用时稍微修改一下 --------------------编程问答-------------------- Vio 是什么啊? --------------------编程问答-------------------- 楼上的方法不行啊 --------------------编程问答-------------------- 我自己试了下可以,你试为什么就不行了呢/
vio是个变量 --------------------编程问答-------------------- 为什么会有这种需求,奇怪
补充:.NET技术 , VB.NET