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--