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
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.