Only a function call can return a value. See
http://www.berezniker.com/content/pages/visual-foxpro/difference-between-function-and-procedure-statementslnReturn = Blah('SomeString' )
>I have a prg that receives parameters and returns a value. It does not have "Procedure" line at the top, it's just code in a prg.
>
>The last line of the file returns a value with RETURN lnReturn
>
>So, how do you call a PRG in a way that you can capture the return value?
>
>I've tried stuff like:
>
>Do Blah.prg with 'SomeString' to lnReturn
>
>
>and other goofy attempts, but none have worked.
>
>What to do?
--sb--