This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Property Duplicate prevention

Hello All!

I have a question... How can I make a VBScript that makes M-file search in the database for the property and if it was there before, it stops creating the object.

For example:

I have the employee class... and i have an Employee Number as a property to create a new employee. I want to make sure that the Employee number i am entering for the new user is not the same as an existing Employee number from before.

How can i make M-files check this for this? and throw an error message if found any duplication.

Please help? 

Also, I am new to M-files. So, if you pleased give me a little bit explained tips :)

Thank you, and wish you a good day.