C
chukrum47
Guest
Hello,
For some reason unkown to me, whenever I try and use a switch/case block with the sender parameter, I get the error: "A value of an integral type expected", yet if I try the exact same thing using if and else if blocks, it works fine. Why?
For example: I set two button's click event to call the same event. I then want to be able to tell who the sender was, so that the form will act accordingly, but can only seem to get this to work with if blocks, not switch/case blocks.
Thanks!
chukrum47How are a plum and a rabbit similar? They're both purple, except for the rabbit.
Continue reading...
For some reason unkown to me, whenever I try and use a switch/case block with the sender parameter, I get the error: "A value of an integral type expected", yet if I try the exact same thing using if and else if blocks, it works fine. Why?
For example: I set two button's click event to call the same event. I then want to be able to tell who the sender was, so that the form will act accordingly, but can only seem to get this to work with if blocks, not switch/case blocks.
Thanks!
chukrum47How are a plum and a rabbit similar? They're both purple, except for the rabbit.
Continue reading...