Check this thread
Parameters and what to check Thread #
1261696 >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
>
If it's not broken, fix it until it is.
My Blog