Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error No PARAMETERS statement is found
Message
From
09/03/2011 13:41:39
 
 
To
09/03/2011 13:30:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01502993
Message ID:
01503052
Views:
43
You have my sympathy! :-)

One of the worst cases I have worked with, was a project with many procedure files in different directories. The project had many functions with identical names, so it was no big surprise that the application acted weird from time to time. I worked my way through all the files and separated most of the functions into separate files in ONE prog directory. During this work I got a series of "do you want to overwrite" messages, which told me which function calls to search for. And as a side effect, I learned to appreciate Code Reference.

>I've run into problems where not only were identically-named functions (which resulted in hard-to-diagnose problems -- depending on the conditions you might fet a different one being called), but within one context the name would resolve to an array variable. It's one of those things I had to learn to deal with when dealing with program code that had been worked on by several different programmers that practiced "cut-and-paste" coding (i.e. copy sections of code from one place, then applying minimal changes to get it working within another context -- a real headache as usually none of the variable and function names have anything to do with the context they appear).
>
>>I'm glad you solved the problem. Having functions with the same name can be a PITA, that's one of the reasons why I now mostly use separate files for every function.
>>
>>>Found where was an error:
>>>there was two .prg files where was declared two different functions with same name - one with PARAMETERS statements, other without... It's strange how compiler alloyed to compile the code... :-?
>>>
>>>>You must try to isolate the error, exactly what line of code triggers the error.
>>>>
>>>>>Without any parameters.
>>>>>The problem occurs sometimes working with forms...
>>>>>
>>>>>>How do you start the exe, do you add parameters?
>>>>>>
>>>>>>>It's compiled with Debug info, but Error doesn't give any information about line...
>>>>>>>
>>>>>>>>Compile the exe with debug info, and see which line causes the error.
>>>>>>>>
>>>>>>>>>Hello,
>>>>>>>>>
>>>>>>>>>I have strange behavior of my compiled exe file.
>>>>>>>>>
>>>>>>>>>I'm getting "No PARAMETERS statement is found" error where it can't be...
>>>>>>>>>
>>>>>>>>>Why this error occurs?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform