![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In trying to convert decimal to integer within a transformation using below code, I am getting error "Invalid Procedure call or argument: 'DTSSource'" at execution. Can some point out how I can correct the error. Dim newPRQtyPriceRecieved newPRQtyPriceRecieved = DTSSource("cast(PRQtyPriceRecieved as integer )") DTSDestination(" PRQtyPriceRecieved)") =newPRQtyPriceRecieved |
#3
| |||
| |||
|
|
In trying to convert decimal to integer within a transformation using below code, I am getting error "Invalid Procedure call or argument: 'DTSSource'" at execution. Can some point out how I can correct the error. Dim newPRQtyPriceRecieved newPRQtyPriceRecieved = DTSSource("cast(PRQtyPriceRecieved as integer )") DTSDestination(" PRQtyPriceRecieved)") =newPRQtyPriceRecieved |
#4
| |||
| |||
|
|
should be newPRQtyPriceRecieved = CINT(DTSSource(PRQtyPriceRecieved as integer )) Ed "Liz" wrote: In trying to convert decimal to integer within a transformation using below code, I am getting error "Invalid Procedure call or argument: 'DTSSource'" at execution. Can some point out how I can correct the error. Dim newPRQtyPriceRecieved newPRQtyPriceRecieved = DTSSource("cast(PRQtyPriceRecieved as integer )") DTSDestination(" PRQtyPriceRecieved)") =newPRQtyPriceRecieved |
#5
| |||
| |||
|
|
newPRQtyPriceRecieved = CINT(DTSSource("PRQtyPriceRecieved")) Ed "Ed" wrote: should be newPRQtyPriceRecieved = CINT(DTSSource(PRQtyPriceRecieved as integer )) Ed "Liz" wrote: In trying to convert decimal to integer within a transformation using below code, I am getting error "Invalid Procedure call or argument: 'DTSSource'" at execution. Can some point out how I can correct the error. Dim newPRQtyPriceRecieved newPRQtyPriceRecieved = DTSSource("cast(PRQtyPriceRecieved as integer )") DTSDestination(" PRQtyPriceRecieved)") =newPRQtyPriceRecieved |
#6
| |||
| |||
|
|
Thank you all. Its all working with the following code: DTSDestination("PRQtyPriceRecieved")=cint(DTSSourc e("PRQtyPriceRecieved")) |
![]() |
| Thread Tools | |
| Display Modes | |
| |