Click here to Skip to main content
15,892,292 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.NET App to force password change on a Windows Srvr Pin
Phillip J.15-Mar-07 11:56
Phillip J.15-Mar-07 11:56 
GeneralRe: VB.NET App to force password change on a Windows Srvr Pin
Dave Kreskowiak15-Mar-07 12:41
mveDave Kreskowiak15-Mar-07 12:41 
Questionread files size Pin
alpdoruk15-Mar-07 6:07
alpdoruk15-Mar-07 6:07 
AnswerRe: read files size Pin
JUNEYT15-Mar-07 6:16
JUNEYT15-Mar-07 6:16 
GeneralRe: read files size Pin
alpdoruk15-Mar-07 8:47
alpdoruk15-Mar-07 8:47 
GeneralRe: read files size Pin
JUNEYT15-Mar-07 11:07
JUNEYT15-Mar-07 11:07 
AnswerRe: read files size Pin
nlarson1115-Mar-07 11:17
nlarson1115-Mar-07 11:17 
QuestionEvalutating an If statement Pin
Eldon Zacek15-Mar-07 5:57
Eldon Zacek15-Mar-07 5:57 
I am having a discussion with a college about evaluating an expression with Visual Basic.

It is centered around that an "If" statement is evaluated from Left to Right. So, once the expression is found True or False, the remaining portion of the expression is not evaluated.


Consider the follow:

<br />
If (C = 3) And ((B / A) > 1) Then<br />
    MsgBox "checking If statement"<br />
End If<br />


If the value of "A" is zero, this would cause an execution violation. This should only happen if "C" has the value of 3. In Visual Basic, the right side of the statement is being evaluated no matter what the value of "C" is. In the many "C" compilers that I have worked with, the second half of the statement would be ignored as long as "C" was not equal to 3.

If somebody could shed some light on this issue, it would be appreciated.

Also, is there a way in the Visual Basic environment to view the assembly code?

Thank you.


Eldon Zacek
AnswerRe: Evalutating an If statement Pin
Colin Angus Mackay15-Mar-07 6:01
Colin Angus Mackay15-Mar-07 6:01 
AnswerRe: Evalutating an If statement Pin
Marcus J. Smith15-Mar-07 6:14
professionalMarcus J. Smith15-Mar-07 6:14 
GeneralRe: Evalutating an If statement Pin
Eldon Zacek15-Mar-07 6:19
Eldon Zacek15-Mar-07 6:19 
GeneralRe: Evalutating an If statement Pin
Marcus J. Smith15-Mar-07 6:34
professionalMarcus J. Smith15-Mar-07 6:34 
GeneralRe: Evalutating an If statement Pin
nlarson1115-Mar-07 11:24
nlarson1115-Mar-07 11:24 
Questionhow to call add(int i,int j) function in a mfc dll from vb application. Pin
punit singh15-Mar-07 5:13
punit singh15-Mar-07 5:13 
AnswerRe: how to call add(int i,int j) function in a mfc dll from vb application. Pin
Marcus J. Smith15-Mar-07 5:48
professionalMarcus J. Smith15-Mar-07 5:48 
QuestionVB.6 or VB.net Pin
edgard haddad15-Mar-07 5:13
edgard haddad15-Mar-07 5:13 
AnswerRe: VB.6 or VB.net Pin
JUNEYT15-Mar-07 5:30
JUNEYT15-Mar-07 5:30 
AnswerRe: VB.6 or VB.net Pin
MatrixCoder15-Mar-07 7:05
MatrixCoder15-Mar-07 7:05 
Questionformat strings Pin
Marc Soleda15-Mar-07 4:46
Marc Soleda15-Mar-07 4:46 
AnswerRe: format strings Pin
JUNEYT15-Mar-07 5:23
JUNEYT15-Mar-07 5:23 
GeneralRe: format strings Pin
Marc Soleda15-Mar-07 5:49
Marc Soleda15-Mar-07 5:49 
GeneralRe: format strings Pin
Marcus J. Smith15-Mar-07 5:53
professionalMarcus J. Smith15-Mar-07 5:53 
AnswerRe: format strings Pin
Marcus J. Smith15-Mar-07 5:47
professionalMarcus J. Smith15-Mar-07 5:47 
GeneralRe: format strings Pin
Marc Soleda15-Mar-07 6:09
Marc Soleda15-Mar-07 6:09 
QuestionHow to make an XMLNode a serializable object Pin
ONeil Tomlinson15-Mar-07 4:17
ONeil Tomlinson15-Mar-07 4:17 

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.