|
-
Oct 3rd, 2003, 11:19 AM
#1
Thread Starter
Addicted Member
-
Oct 3rd, 2003, 11:55 AM
#2
Sleep mode
I would do it this way , if it raised error , then it's not decimal elsewise , it's decimal .
VB Code:
Public Function CheckDecimal(ByVal number As Object) As Boolean
Try
MessageBox.Show(Convert.ToDecimal(number))
Return True
Catch ex As Exception
MessageBox.Show("Error while converting to Decimal")
Return False
End Try
End Function
-
Oct 3rd, 2003, 11:58 AM
#3
Sleep mode
Use something like this to test it .
VB Code:
MessageBox.Show(CheckDecimal(xxxx))
-
Oct 3rd, 2003, 12:11 PM
#4
Thread Starter
Addicted Member
That did it!!
Thanks Pirate,
That worked well.....
You da MAN!
Bebandit
-
Oct 3rd, 2003, 12:43 PM
#5
PowerPoster
Or something like Decimal.Parse()
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
|