At VB6 We known below:
string$
abs
chr$
dim myarray(0 to 4)
I question is simple .. in Vb.NET what 's the replacement for the above ..
please advise .. thanks a lot in advance
Regards
Winanjaya
Printable View
At VB6 We known below:
string$
abs
chr$
dim myarray(0 to 4)
I question is simple .. in Vb.NET what 's the replacement for the above ..
please advise .. thanks a lot in advance
Regards
Winanjaya
string$ :
I think you can use ToString() method to return the string representation of value .
abs
???? .
chr$
????
dim myarray(0 to 4)
dim myarray(4)
:rolleyes:
Abs returns the absolute value.
I think that in .NET is something like Maths.Abs() or Math.Abs()
the chr$ can be done in many ways:
If you're using C# just do "string"[char_position].ToString()
If you're using VB.NET then(I dont know without going to see) but a easy way would be "string".Substring(char_position,1)
System.Math.Abs(myNumber)