Skip to Content
0
Former Member
May 14, 2008 at 04:13 AM

Newbie question: Try Catch EndTry....what to catch??

32 Views

I have a string which is supposed to contain only numeric characters like 1234...

But if unfortunately it contains some alphabet, my program will crash.

I am going to implement a try catch endtry to prevent this. But I don't know what to catch. It can be compiled, but I am just not sure whether it is correct or not.

Currently, I catch CX_STATIC_CHECK.

Is this correct? Please advice me and I will reward you.

Thanks