forked from mspace912/iLogic-Development
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3A. IPROPERTY CHECK.ILOGICVB
More file actions
29 lines (22 loc) · 989 Bytes
/
3A. IPROPERTY CHECK.ILOGICVB
File metadata and controls
29 lines (22 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Filetype = Right(ThisDoc.FileName(True),3) 'without extension
EmptyProperties = 0
If Len(iProperties.Value("Project", "Part Number")) = 0 Then
EmptyProperties = EmptyProperties + 1
End If
If Len(iProperties.Value("Project", "Description")) = 0 Then
EmptyProperties = EmptyProperties + 1
End If
'If Len(iProperties.Value("Custom", "Job Number")) = 0 Then
' EmptyProperties = EmptyProperties + 1
'End If
'If Len(iProperties.Value("Custom", "Customer")) = 0 Then
' EmptyProperties = EmptyProperties + 1
'End If
If EmptyProperties > 0 Then
'___Use windows voice command____________
' Dim objSPVoice,colVoices
' objSPVoice = CreateObject("SAPI.SpVoice")
' objSPVoice.Speak ("Not all iProperties have been filled out")
i = MessageBox.Show("Not all iProperties have been fiiled out. Please enter the appropriate information.", "iProperties Missing", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1)
' iLogicForm.ShowGlobal("iProperties Editor")
End If