Message 1 of 4
Ilogic to populate legacy files with current Custom iProperties, without clearing all data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
My knowledge with coding is very basic. I have written this small code to update old legacy files with my current Custom iProperties. The code is basic but it does the job. The only problem i have, is that it overrides any value that is within the legacy file with a blank field.
How do i get this code to skip a iProperty when the value isnt blank?
Here is the code:
Dim CustomNumber As Double iProperties.Value("Custom", "Approved By Author") = oPropValue iProperties.Value("Custom", "Approved By Date") = oType_Date iProperties.Value("Custom", "Checked By Author") = oPropValue iProperties.Value("Custom", "Checked By Date") = oType_Date iProperties.Value("Custom", "Description") = oPropValue iProperties.Value("Custom", "Description1") = oPropValue iProperties.Value("Custom", "Description2") = oPropValue iProperties.Value("Custom", "Display Name") = oPropValue iProperties.Value("Custom", "Document Status") = oPropValue iProperties.Value("Custom", "Document Status By") = oPropValue iProperties.Value("Custom", "Document Status Comment") = oPropValue iProperties.Value("Custom", "Document Status Date") = oType_Date iProperties.Value("Custom", "Document Status Watermark") = oPropValue iProperties.Value("Custom", "Drawing Number") = oPropValue iProperties.Value("Custom", "Drawn By Author") = oPropValue iProperties.Value("Custom", "Drawn By Date") = oType_Date iProperties.Value("Custom", "Custom File Name") = oPropValue
Any help is much appreciated.
Regards
Ethan