hi how would you implement an int variable for example which is loaded from
a database and therefore can have a value of DBNull. due to the fact that
primitives are structs rather than classes they cannot be null.
how would you solve this?
1. programming an own wrapper class
2. save it as object an cast when int value is needed
3. treat -1 as null-value
4. save it as string and cast if neccassary
in java there are predefined wrappers for all primitives which could be used
in this situation.
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk