|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
INPUT string not in correct format?
Morning all,
This is an easy one for all you VB experts, but on a friday my novice head isn't in programming mode!!!! I get an 'input string was not in correct format' on the following line: Code:
Session("ShippingVAT") = (xobjrs.fields("Price").Value.ToString * CurrentVATRate) - xobjrs.fields("Price").Value.ToString
CurrentVATRate is Dimmed and Stored as a String value for use in shopping cart calculations. Any help would be appreciated!!!! Barry |
|
#2
|
||||
|
||||
|
Whats the value of
Code:
(xobjrs.fields("Price").Value.ToString * CurrentVATRate) - xobjrs.fields("Price").Value.ToString
|
|
#3
|
|||
|
|||
|
Not entirely sure what you mean by 'the value' (really having a bad friday today!)...
the idea is it takes the price field, a numeric value, multiplies it by the currentvatrate which is declared as a string value 1.15, then subtracts the price field from the sum to leave just the currentvatrate sum, e.g. (100.00 * 1.15) - 100.00 |
|
#4
|
||||
|
||||
|
Hmm, i am not sure why its not working
Try like this Code:
someVar = (xobjrs.fields("Price").Value.ToString * CurrentVATRate) - xobjrs.fields("Price").Value.ToString
Session("ShippingVAT") = someVar
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > INPUT string not in correct format? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|