I'm having a problem with an application I've just created where no matter how many parameters I pass the exe or even if I don't pass one at all the Parameters() and PCOUNT() functions are returning a value of one. I've used this same section of code in dozens of applications and this is the first time I have ever encountered this problem Any help is greatly appreciated.
PARAMETERS sch_tsk
IF PARAMETERS() > 0
M.TASK_CMD = sch_tsk
ENDIF
DO FORM ('FRMSCAN')
READ EVENTS