Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending a parameter whether it likes it or not
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00547561
Message ID:
00547575
Views:
7
Hello Michelle,

Couldn't you make a subclass that includes a PARAMETER statement to accept whatever parameters you wish to send it, then include a DODEFAULT() passing paremeters based on a version or other criteria.

HTH

Bob


>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
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform