Click here to Skip to main content
16,006,869 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Sockets Using play youtube videos Pin
Dave Kreskowiak9-May-13 1:39
mveDave Kreskowiak9-May-13 1:39 
QuestionBitwise AND in an If/Else block Pin
treddie7-May-13 11:33
treddie7-May-13 11:33 
AnswerRe: Bitwise AND in an If/Else block Pin
Dave Kreskowiak7-May-13 14:49
mveDave Kreskowiak7-May-13 14:49 
GeneralRe: Bitwise AND in an If/Else block Pin
treddie7-May-13 17:04
treddie7-May-13 17:04 
GeneralRe: Bitwise AND in an If/Else block Pin
Richard MacCutchan7-May-13 21:19
mveRichard MacCutchan7-May-13 21:19 
GeneralRe: Bitwise AND in an If/Else block Pin
treddie7-May-13 22:38
treddie7-May-13 22:38 
GeneralRe: Bitwise AND in an If/Else block Pin
Bernhard Hiller7-May-13 23:07
Bernhard Hiller7-May-13 23:07 
GeneralRe: Bitwise AND in an If/Else block Pin
Dave Kreskowiak8-May-13 1:58
mveDave Kreskowiak8-May-13 1:58 
treddie wrote:
After testing, the first example works, the second does not


Oh, it works, just not the way to think it does.

The result of (ValueA And MaskA) results in an integer value, not True/False. That integer is compared to zero. If the result of the expression is non-zero, True is returned. The Not operator will invert that to False.

If the result of the expression is zero, False is returned, then inverted to True by the Not operator.

Withouting seeing the values of ValueA and Mask, it's pretty much all we can tell you.

GeneralRe: Bitwise AND in an If/Else block Pin
treddie8-May-13 11:23
treddie8-May-13 11:23 
GeneralRe: Bitwise AND in an If/Else block Pin
Dave Kreskowiak8-May-13 13:18
mveDave Kreskowiak8-May-13 13:18 
GeneralRe: Bitwise AND in an If/Else block Pin
Richard MacCutchan8-May-13 20:56
mveRichard MacCutchan8-May-13 20:56 
GeneralRe: Bitwise AND in an If/Else block Pin
treddie8-May-13 22:14
treddie8-May-13 22:14 
AnswerRe: Bitwise AND in an If/Else block Pin
Richard MacCutchan9-May-13 1:07
mveRichard MacCutchan9-May-13 1:07 
GeneralRe: Bitwise AND in an If/Else block Pin
treddie10-May-13 16:14
treddie10-May-13 16:14 
GeneralRe: Bitwise AND in an If/Else block Pin
Richard MacCutchan8-May-13 2:53
mveRichard MacCutchan8-May-13 2:53 
AnswerRe: Bitwise AND in an If/Else block Pin
TnTinMn8-May-13 3:24
TnTinMn8-May-13 3:24 
GeneralRe: Bitwise AND in an If/Else block Pin
treddie8-May-13 22:15
treddie8-May-13 22:15 
Questioncascading comboboxes vb.net windows forms Pin
Agontuk6-May-13 8:39
Agontuk6-May-13 8:39 
AnswerRe: cascading comboboxes vb.net windows forms Pin
NotPolitcallyCorrect6-May-13 10:15
NotPolitcallyCorrect6-May-13 10:15 
GeneralRe: cascading comboboxes vb.net windows forms Pin
Agontuk7-May-13 0:42
Agontuk7-May-13 0:42 
AnswerRe: cascading comboboxes vb.net windows forms Pin
Simon_Whale7-May-13 1:30
Simon_Whale7-May-13 1:30 
AnswerRe: cascading comboboxes vb.net windows forms Pin
Dave Kreskowiak7-May-13 1:44
mveDave Kreskowiak7-May-13 1:44 
GeneralRe: cascading comboboxes vb.net windows forms Pin
Agontuk9-May-13 8:53
Agontuk9-May-13 8:53 
QuestionHow to export the data from datagridview & all the data on the form1.vb make a report Pin
chandan H T5-May-13 1:24
chandan H T5-May-13 1:24 
AnswerRe: How to export the data from datagridview & all the data on the form1.vb make a report Pin
Eddy Vluggen5-May-13 8:49
professionalEddy Vluggen5-May-13 8:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.