Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27381

VS 2012 TryParse a Double

$
0
0
I have a variable (ApplicationVersionInformationArray(0)) that holds the following value: "1.0.0.1"

What is the best way to determine if this value is larger than 1.0

Here is my current code (ApplicationVersionInformationNumber is of type Double):

Code:

        If Double.TryParse(ApplicationVersionInformationArray(0), ApplicationVersionInformationNumber) = False Then
            Return False
        Else
            If ApplicationVersionInformationNumber < 1 Then Return False
        End If


Viewing all articles
Browse latest Browse all 27381

Latest Images

Trending Articles



Latest Images