Dim txt As WinForm.TextBox = e.Form.Controls("TextBox1")Dim str As String = txt.textDim A As New SQLCommand Dim rundm As StringA.CommandText = "selec t runcode fro m sy_from where menuname ='" & str & "'"rundm = A.ExecuteScalar()
'运行对应的代码内容If rundm Is Nothing Then ReturnEnd If