I want to translate this into Visual Basic... Sorry, im new to VB!
If (this == this_1)
{
// Do this
}
Else
If (this == this_2)
{
// Do this
}
Else
// Do this
Printable View
I want to translate this into Visual Basic... Sorry, im new to VB!
If (this == this_1)
{
// Do this
}
Else
If (this == this_2)
{
// Do this
}
Else
// Do this
Code:If this = this_1 Then
'Do this
ElseIf this = this_2 Then
'Do this
Else
'Do this
End If
[Code:If this1 = this_1 Then
do stuff
else
if this2 = this_2 then
do more stuff
else
do some more stuff
end if
end if
Thanks! ;)
x0rx0r, that's not what they asked for.. they want to compare THIS with THIS_1 and THIS_2.. so you could write it like;
Or you could write it like my answer.Code:If this = this_1 Then
do stuff
else
if this = this_2 then
do more stuff
else
do some more stuff
end if
end if
Is this C++ code you want to do in vb ?
Like i see it you try to check two pointers against eachother.
Don't think you can do it in vb.
Maybe you can check two objects against eachother.
Yes Buzby, the first one worked... maybe i should have wrote the code like this:
If (this == this_1)
{
// Do this
}
Else
If (this == this_2)
{
// Do this
}
Else
// If neither of the two... Do this
// This is kinda like a default...
Ha the this part is not a pointer you try to evaluate.
Try to use better words next time.
Or you could use:
VB Code:
Select Case This1 Case This_1 'Code here Case This_2 'More code here Case Else 'Even more code here End Select
:D