|
-
December 10th, 2008, 06:43 PM
#33
Re: Object Validation
Ok, I'll make the changes then. I tried to stay away from returning true because no matter what is passed into the function will always be true even if it's not valid. I figured it was safer to return false and not assume the field was valid.
Now my IsValid() function will check all the field's Value property correctly. But I didn't know it was possible for a class to build a collection of all of the fields declared within it.
Right now I'm checking them all manually like I shown in my code example on Post # 40
Three5Eight
Using: MS C# 08 EE, MS SQL 05 EE, C++ .Net 08 EE, Vista Home Premium, XP Home
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|