I’m trying to create my first console app and I’ve managed somehow to have it work fine, everything but the argument handling. I want the app to run with and without arguments so i thought to check with a if routine but i’m getting exceptions if I run the app without an argument.
My run event check is as follows
if (args(1)) = "" then Days = -7 else Days = -(val(args(1))) End if
The whole app has about 30 to 40 lines of code so i’d like to keep it simple without adding massive classes or functions to handle the argument check