Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters to a form
Message
From
30/10/2001 23:07:37
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
30/10/2001 21:11:42
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00575429
Message ID:
00575459
Views:
25
>>>>>My application was working beautifully in VFP6 and now I'm having a problem in VFP7. I have a form class that accepts up to 7 parameters. When I call it with 4 parameters it works, but when I add a fifth, it crashes. It doesn't matter whether the fifth is blank or not, and it doesn't get beyond the parameter statement. Any ideas?
>>>>
>>>>What's the exact error?
>>>
>>>The error is "File 'xyz' does not exist", where 'xyz' is a name that isn't supposed to be a file to begin with. 'xyz' is just the name of a control on my active form. I believe the error is misleading.
>>
>>If you SET STEP ON to activate the debugger, would it be a help pointing you to the right line of code? I guess you have a line in your code with xyz.property...
>
>I wish it were so simple... One problem is that the code works fine if run from the command window. I've also determined that the error doesn't happen on any particular line of code - it seems to be on the actual call of the form.

While I have no idea why this was a problem, the problem was that I couldn't pass more than 4 parameters. So I collected the parameters into an object and passed the object and now all is well. This has to be the craziest bug I've encountered. Thanks to all who tried to help!
Elyse Pomerantz
Previous
Reply
Map
View

Click here to load this message in the networking platform