Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why the program is never called?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01653844
Message ID:
01653893
Vues:
76
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform