Convert VB6 Code to VB.NET

ADO DOT NET

Centurion
Joined
Dec 20, 2006
Messages
160
Hi,
I have a single line of code in VB6 which I wanna convert to .NET:
Here is my VB6 code:
Visual Basic:
If CDbl(Right(Results, 1)) = 0 Then Rights = 500
I already have converted it and here it is:
Visual Basic:
If Convert.ToDouble(Results.ToString.Substring(Results.ToString.Length - 1, 1)) = 0 Then Rights = 500
Just to make sure if I converted correctly and there is no shorter/better way specially for Right$ function, please let me know if my conversion is OK?
Thank you very much.
 
Back
Top