Sub CheckNumber Dim objPage Set objPage = ThisEvent.Object Dim objChkBox Set objChkBox = objPage.Controls("Check1") Dim objTxtBox Set objTxtBox = objPage.Controls("Edit1") If (objChkBox.Value = False) And (objTxtBox.Value = "") Then ThisEvent.Result = False ThisEvent.MessageText = "Please add a value to the text box > 0" ElseIf (objChkBox.Value = True) And (objTxtBox.Value < 0) Then ThisEvent.Result = False ThisEvent.MessageText = "Raise the alert!" End If End Sub
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.