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