Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why the program is never called?
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01653844
Message ID:
01653893
Views:
75
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform