Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: I'm looking for instructions to convert a demo project into a class Pin
turbosupramk38-Jan-15 4:58
turbosupramk38-Jan-15 4:58 
GeneralRe: I'm looking for instructions to convert a demo project into a class Pin
V.8-Jan-15 10:04
professionalV.8-Jan-15 10:04 
QuestionBinding one to many (bindingsource / datasource ) Pin
rudo327-Jan-15 4:52
rudo327-Jan-15 4:52 
Questionenums Pin
Gilbert Consellado6-Jan-15 21:21
professionalGilbert Consellado6-Jan-15 21:21 
AnswerRe: enums Pin
V.6-Jan-15 21:46
professionalV.6-Jan-15 21:46 
GeneralRe: enums Pin
Gilbert Consellado6-Jan-15 22:15
professionalGilbert Consellado6-Jan-15 22:15 
AnswerRe: enums Pin
OriginalGriff6-Jan-15 22:49
mveOriginalGriff6-Jan-15 22:49 
AnswerRe: enums Pin
lukeer6-Jan-15 22:55
lukeer6-Jan-15 22:55 
Use another binary operator
C#
if( (pp & PrescriptionTypePrint.Both) != 0)
{
    // execute this block
}
This will binary-AND two integer operands. The result will equal zero if the oparands don't share a common bit set to '1'. Therefore 'pp' will not result in the expression to equal zero whenever any one of the bits of 'Both' are set in 'pp'.

Ciao,


luker

GeneralRe: enums Pin
OriginalGriff6-Jan-15 23:17
mveOriginalGriff6-Jan-15 23:17 
GeneralRe: enums Pin
lukeer7-Jan-15 1:41
lukeer7-Jan-15 1:41 
GeneralRe: enums Pin
OriginalGriff7-Jan-15 2:08
mveOriginalGriff7-Jan-15 2:08 
GeneralRe: enums Pin
lukeer7-Jan-15 20:55
lukeer7-Jan-15 20:55 
GeneralRe: enums Pin
Gilbert Consellado9-Jan-15 13:07
professionalGilbert Consellado9-Jan-15 13:07 
AnswerRe: enums Pin
BillWoodruff9-Jan-15 15:08
professionalBillWoodruff9-Jan-15 15:08 
GeneralRe: enums Pin
Gilbert Consellado9-Jan-15 16:34
professionalGilbert Consellado9-Jan-15 16:34 
Questionlogin from read file.txt Pin
techker26-Jan-15 12:27
techker26-Jan-15 12:27 
AnswerRe: login from read file.txt Pin
Dave Kreskowiak6-Jan-15 14:03
mveDave Kreskowiak6-Jan-15 14:03 
GeneralRe: login from read file.txt Pin
techker26-Jan-15 14:29
techker26-Jan-15 14:29 
GeneralRe: login from read file.txt Pin
Richard Andrew x646-Jan-15 15:28
professionalRichard Andrew x646-Jan-15 15:28 
GeneralRe: login from read file.txt Pin
techker26-Jan-15 15:57
techker26-Jan-15 15:57 
GeneralRe: login from read file.txt Pin
Pete O'Hanlon6-Jan-15 16:03
mvePete O'Hanlon6-Jan-15 16:03 
GeneralRe: login from read file.txt Pin
techker26-Jan-15 16:57
techker26-Jan-15 16:57 
GeneralRe: login from read file.txt Pin
Pete O'Hanlon6-Jan-15 18:04
mvePete O'Hanlon6-Jan-15 18:04 
GeneralRe: login from read file.txt Pin
techker27-Jan-15 0:13
techker27-Jan-15 0:13 
GeneralRe: login from read file.txt Pin
Dave Kreskowiak7-Jan-15 2:21
mveDave Kreskowiak7-Jan-15 2:21 

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.