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:
00547613
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>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

I just dealt with this exact problem and decided to add a custom property and set the value. I then coded to check the property... It's kludgy, but better than digging around and changing all the code.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform