stephenmbell
Member
- Joined
- Nov 25, 2008
- Messages
- 5
- Programming Experience
- 1-3
This may be a very simple question that, for some reason, I am not wrapping my head around... but - if someone could explain this it would be fantastic.
I don't have much experience with object oriented development other than back in college - but my question is regarding creating ENUMS.
The way I understand enums is that they are "user-defined types" - quite possibly a real world example would be an enum called status. Status could have possible values:
1 - Setup
2 - Pending
3 - Accepted
I am pretty sure that I understand the VB code to create this enum - but my question is - is it typical to hard code this into your vb file?? Wouldn't it make more sense to have a database table Status with the values you want for the enum??
IF the database table is the way it is done -- how do you do this?
Thanks for any responses, hope this post makes sense.
sb
I don't have much experience with object oriented development other than back in college - but my question is regarding creating ENUMS.
The way I understand enums is that they are "user-defined types" - quite possibly a real world example would be an enum called status. Status could have possible values:
1 - Setup
2 - Pending
3 - Accepted
I am pretty sure that I understand the VB code to create this enum - but my question is - is it typical to hard code this into your vb file?? Wouldn't it make more sense to have a database table Status with the values you want for the enum??
IF the database table is the way it is done -- how do you do this?
Thanks for any responses, hope this post makes sense.
sb