Thanks Seth Rowe,
I don't wanna to concatenation the variable.
The entire function:
Dim a As UInteger = 63689
Dim b as UInteger = 568978
Dim result as UInteger = 0
Dim stringA As String = "WORK"
For i as Integer = 0 to 3
result = result * a + stringA(i)
a = a *b
Next
result = result and 2158975
Thanks, is so complex...
"rowe_newsgroups" <
[email protected]> escribió en el mensaje
Hi everybody,
¿can help me?,
I'm novice in C#,
can tell me what type of variable gives this operation.
Dim a As UInteger = 63689
Dim stringA As String = "w"
result = a + stringA
Thanks everybody
The variable type would probably be "InvalidCastException" as you are
performing an illegal call. It also seems that you have both Option
Explicit and Option Strict turned off. These should be turned on
almost 99.99% of the time.
Perhaps you are wanting to use the "+" operator for string
concatenation (which is the "&" operator in VB)? Then you could do
this:
Dim result As String = a.ToString() & stringA
If thats not what you were looking for, why not share what you are
trying to accomplish?
Thanks,
Seth Rowe