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:
I already have converted it and here it is:
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.
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
Visual Basic:
If Convert.ToDouble(Results.ToString.Substring(Results.ToString.Length - 1, 1)) = 0 Then Rights = 500
Thank you very much.