>>OK, now the PARAMETERS() function doesn't return the number of parameters correctly. It seems to return 0 instead of 2.
>>
>>Anyway to fix that?
>
>PCOUNT() is function for you. PARAMETERS() can return bad number of parameters time at time.
>
>Hacker's Guide
>
>Using PARAMETERS() has always been a tricky thing. You have to be sure to grab the value as soon as you enter the routine and hope that no ON KEY LABEL or other interrupt occurs that could change the value before you get it.
>
>MartinaJ
Thanks a lot, Martina. I did recall something like that. The program itself was written in 1995 :) I got rid of parameters() function completely. I will make sure I never use parameters() function in my code.
If it's not broken, fix it until it is.
My Blog