|
-
Jul 26th, 2005, 03:32 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Version Checking
I have a program that gets and checks the version numbers of several programs (Java, Acrobat, etc.) I'm having a problem though since several versions of the programs are numbered with two decimal points, for example 1.4.2 for Sun Java.
My question is how can I check to see if 1.4.2 is greater or lesser than 1.5 or whatever the minimum requirement is?
-
Jul 26th, 2005, 04:17 PM
#2
Re: Version Checking
i suppose if you can get the number into a string, you could do a string comparison something like this
VB Code:
Dim n1 As String
n1 = "1.4.2"
Select Case n1
Case Is > "1.5"
MsgBox "greater"
Case Is < "1.5"
MsgBox "smaller"
Case Else
MsgBox "same"
End Select
casey.
-
Jul 26th, 2005, 04:31 PM
#3
Thread Starter
Addicted Member
Re: Version Checking
Thanks, I didn't think you could do a string comparison with numbers like that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|