Equivalant in VB

bri189a

Well-known member
Joined
Sep 11, 2003
Messages
1,004
Location
VA
It doesnt appear you can do |= or &= is VB...am I going to have to:

MyFlags = MyFlags Or Flags.Type5

to do the equivenlat of:

MyFlags |= Flags.Type5

And theres no ++ or -- either? They have += and -+ and *= and /= but not increment or decrement.... and how am I suppose to do operator overloading? Its so much nicer to have:

result = Vertex4 * Vertex5

Im going to have to go back to:

result = Vertex4.Multiply(Vertex5)? - or -
result = Vertex.Multiply(Vertex4, Vertex5)

:(
 
You just have to live with the facts :), or wait and see if they will be added in the next version.
You could get get something equivalent to:
MyFlags |= Flags.Type5
As in:
MyFlags += Flags.Type5
But only if you turned off Option Strict and we know you dont want to do that :).
 
Back
Top