Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP8 confuses program call with an array
Message
 
 
To
22/11/2004 15:26:59
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00963624
Message ID:
00963655
Views:
7
Hi Alan,

There's no way for VFP to know at time of compilation if 'xyz' is array or a function. The error means that VFP cannot find neither array nor function with the name 'xyz' for whatever reason whgen code has been run.

>I'm attempting to convert a vfp5 executable into vfp8.
>
>xyz is a prg that is included in the project. It accepts a numeric parameter and returns a value. In vfp5, I call it like this:
>
>lnValue = xyz(1)
>
>In vfp8, I get an error, "invalid subscript reference" - apparently vfp8 thinks xyz is an array and does not recognize it as a prg. Is there a way to let vfp8 know that this is a prg and not an array?
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform