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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.