Hi,
The practice in this lesson requires exception handling when converting transaction values into integers.
I used an ‘Assign’ activity with the ‘Cint’ function. When it inevitably encounters an input with letters instead of numbers, shouldn’t it just execute the ‘Catch’ block and move on?
Instead, the process breaks and displays an error “Assign: Conversion from string “3P10.99” to type ‘Integer’ is not valid.”
1 post - 1 participant