04-12-2022
09:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-12-2022
09:12 AM
It just crossed my mind to show you this:
This is the smallest code in all of the internet for "checking" and creating custom properties if they are "missing"
Try
If iProperties.Value("Custom", "Ref. Number") = Nothing Then
'if not exist causes error
End If
Catch
'create it
iProperties.Value("Custom", "Ref. Number") = ""
End Try