Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending a parameter whether it likes it or not
Message
De
22/08/2001 15:46:27
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00547561
Message ID:
00547567
Vues:
7
You don't need to pass the parameter. The value will default to .F. if you don't pass anything. Just make sure your code handles that.


>I would really like to retrofit a class with a parameter statement for some new development. Unfortunately, all the old stuff doesn't expect any parameters so there is no PARAMETERS line. I get this error:
>
>"No PARAMETER statement is found (Error 1238)"
>
>According to the help, I'm SOL. It says: "After doing a program with a parameter list, the called program must begin with a PARAMETER statement." But I thought I would try here and see if anyone ever figured a way around that.
>
>I tried searching, but the UT search can't count. A search on "parameter statement found" came back saying I can't have any words less than 3 characters.
>
>So, is there any way to supress this error, other than turning the error handler off or fixing all the old code? I don't care if the parameter is ignored; I just don't want the error.
>
>Thanks,
>
>Michelle
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform