Sub OnFormCancel Dim bResult bResult = Application.MessageBox ("Are you sure you want to cancel?", apYesNo, "Cancel?") If bResult = apNo Then ThisEvent.Result = False End If If bResult = apYes Then ThisEvent.Result = True End If End Sub
Sub ValidateUserPTwo Dim objPg Set objPg = ThisEvent.Object If objPg.Controls("cboDP").value = "" Then ThisEvent.Result = False ThisEvent.MessageText = "You must select a Discharge Point Layer to Continue" ThisEvent.MessageType = apOKOnly + apExclamation Exit Sub End If ThisEvent.Result = True 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.