Click here to Skip to main content
16,020,315 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to show that Datagridview is Enabled/Disabled. Pin
Tom Deketelaere7-Sep-10 0:09
professionalTom Deketelaere7-Sep-10 0:09 
QuestionMS Access database not closing Pin
Charles Wolfe6-Sep-10 19:43
Charles Wolfe6-Sep-10 19:43 
AnswerRe: MS Access database not closing Pin
David Mujica7-Sep-10 3:40
David Mujica7-Sep-10 3:40 
AnswerRe: MS Access database not closing Pin
Luc Pattyn7-Sep-10 3:43
sitebuilderLuc Pattyn7-Sep-10 3:43 
AnswerRe: MS Access database not closing Pin
Member 195743615-Nov-10 1:53
Member 195743615-Nov-10 1:53 
Questionhow to use compare function Pin
zhiyuan166-Sep-10 19:37
zhiyuan166-Sep-10 19:37 
AnswerRe: how to use compare function Pin
Dave Kreskowiak7-Sep-10 1:50
mveDave Kreskowiak7-Sep-10 1:50 
AnswerRe: how to use compare function Pin
Luc Pattyn7-Sep-10 2:05
sitebuilderLuc Pattyn7-Sep-10 2:05 
Hi,

seems acceptable; here are a few remarks:

1.
when manipulating bits, make sure your variables are integers, so don't use double.

2.
while your comparison to iShift is OK, you could as well test for zero.

3.
maybe, just maybe, you have your two cases (equal and not equal) swapped.

This would be my style (assuming InputByte is an integer too):
Dim I As Integer
Dim iShift As Integer = 1
For I = 0 To 7
    If (InputByte And iShift)= 0 Then   'Bit Turn OFF
        AMD_GalilInputAxisBit(I) = 0
        AMD_GalilInputBit(I) = 0
    Else 'Bit Turn ON
        AMD_GalilInputAxisBit(I) = 1
        AMD_GalilInputBit(I) = 1
    End If
    iShift = iShift + iShift
Next I


Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


QuestionHow to store a string in Byte array in hex form Pin
jainiraj4-Sep-10 23:49
jainiraj4-Sep-10 23:49 
AnswerRe: How to store a string in Byte array in hex form Pin
Dave Kreskowiak5-Sep-10 3:17
mveDave Kreskowiak5-Sep-10 3:17 
QuestionREgarding sending data when using socket winsock Pin
jainiraj4-Sep-10 20:38
jainiraj4-Sep-10 20:38 
AnswerRe: REgarding sending data when using socket winsock Pin
Dave Kreskowiak5-Sep-10 3:13
mveDave Kreskowiak5-Sep-10 3:13 
QuestionHow to interact a Context Menu with a web browser... Pin
thebiostyle4-Sep-10 11:31
thebiostyle4-Sep-10 11:31 
AnswerRe: How to interact a Context Menu with a web browser... Pin
Mycroft Holmes5-Sep-10 13:06
professionalMycroft Holmes5-Sep-10 13:06 
GeneralRe: How to interact a Context Menu with a web browser... Pin
thebiostyle5-Sep-10 13:34
thebiostyle5-Sep-10 13:34 
QuestionRegarding long data type .. Pin
jainiraj4-Sep-10 2:43
jainiraj4-Sep-10 2:43 
AnswerRe: Regarding long data type .. Pin
DaveAuld4-Sep-10 4:15
professionalDaveAuld4-Sep-10 4:15 
AnswerRe: Regarding long data type .. Pin
Luc Pattyn4-Sep-10 4:29
sitebuilderLuc Pattyn4-Sep-10 4:29 
GeneralRe: Regarding long data type .. Pin
jainiraj4-Sep-10 20:21
jainiraj4-Sep-10 20:21 
GeneralRe: Regarding long data type .. Pin
Dave Kreskowiak5-Sep-10 3:11
mveDave Kreskowiak5-Sep-10 3:11 
GeneralRe: Regarding long data type .. Pin
jainiraj6-Sep-10 0:33
jainiraj6-Sep-10 0:33 
AnswerRe: Regarding long data type .. Pin
Luc Pattyn6-Sep-10 3:19
sitebuilderLuc Pattyn6-Sep-10 3:19 
GeneralRe: Regarding long data type .. Pin
Dave Kreskowiak6-Sep-10 3:49
mveDave Kreskowiak6-Sep-10 3:49 
QuestionRead Table of Content from PDF using PDFBOX library Pin
Nilesh Araligidad3-Sep-10 3:57
Nilesh Araligidad3-Sep-10 3:57 
AnswerIgnore - Crosspost Pin
Dave Kreskowiak3-Sep-10 4:55
mveDave Kreskowiak3-Sep-10 4:55 

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.