|
-
Jan 24th, 2005, 11:25 AM
#1
Thread Starter
Junior Member
Overflow Error:
I am casting from string to int using both the Val and CLng functions. The program must deal with 6 digit numbers and I was under the impression that CLng could handle these but I am getting the error,
Heres the code:
If txtRentalPrice.Text = "" Then
intRentalPrice = "0"
Else: intRentalPrice = CLng(Val(txtRentalPrice.Text))
End If
Any ideas? Thanks Mark
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
|