Interwizard
Programmer
Hi All! I'm a little new to implementing Classes that emulate business objects and I wanted to see if I could get some advice. I'm working on a barcoding app. Barcode input comes from a keyboard wedge and is essentially interpreted as keyboard input.
I was hoping to have the form capture all keystrokes with the keypreview property turned on and then use keypress. Peice of cake, works like a charm.
The end of a barcode is signified with the Pipe (|) Character. Obviously I can do what I'm wanting with arrays or even a few user defined data types, but I want to be a good little egg-head and actually make this portion into classes.
I created a character class to have properties signifying the character code and the character itself.
I created a collection of these characters..
Now, I would like to have the class look at the value everytime the character collection is written to, and then, essentially enumerate ( for each, next ) through the collection of characters, adding to a second collection of "barcode number" classes.
I hope this isn't too abstract. Essentially.. A collection of characters needs to detect the pipe and add to the collection of "barcode labels" .
So, how do I relate the two classes to one another to accomplish this?
Thanks!
Bill Dodd
I was hoping to have the form capture all keystrokes with the keypreview property turned on and then use keypress. Peice of cake, works like a charm.
The end of a barcode is signified with the Pipe (|) Character. Obviously I can do what I'm wanting with arrays or even a few user defined data types, but I want to be a good little egg-head and actually make this portion into classes.
I created a character class to have properties signifying the character code and the character itself.
I created a collection of these characters..
Now, I would like to have the class look at the value everytime the character collection is written to, and then, essentially enumerate ( for each, next ) through the collection of characters, adding to a second collection of "barcode number" classes.
I hope this isn't too abstract. Essentially.. A collection of characters needs to detect the pipe and add to the collection of "barcode labels" .
So, how do I relate the two classes to one another to accomplish this?
Thanks!
Bill Dodd