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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.