Showing results for 
Search instead for 
Did you mean: 

Simple question

Valued Contributor
Valued Contributor


A question I am sure is easy and I should already know. What's the best method of determining if a Custom Property already exists, without using an "On Error" statement?

I am using VB6 and I want to test for Custom Property "REVDATE" for example.

If .Item("Custom").Item("REVDATE").Value = "" Then

This throws an error unless the Property already exists. It seems there must be a better way than erro trapping.



Posted by: Bill Ledbetter
Post date: 10/29/2007 3:02:56 AM


RE: Simple question

Valued Contributor
Valued Contributor

You are correct. The only other way to test to see if a custom property exists is to loop through all of the custom properties looking for the one that you're interested in. The only other solution is for Solid Edge to provide a Exists("PropName") method. That won't happen unless you file an IR with GTAC and ask for it though.


Posted by: Jason Newell
Post date: 10/29/2007 7:43:50 AM