Launch another app from my standalone

Adrian Williams adrian at clubtype.co.uk
Wed Sep 2 11:58:58 EDT 2009


Len,

Trying this FUNCTION and the' to use' right afterwards gives an error:

On 30 Aug 2009, at 17:24, Len Morgan wrote:
> I"m hoping Trevor won't mind me sharing this little snippet of code:
>
> FUNCTION getPathToFile pFile
>   put the filename of this stack into the theFile
>   set the itemdelimiter to slash
>   put pFile into the last item of theFile
>   return theFile
> END getPathToFile
>
> --To use:
> put getPathFile("My App.exe") into tFile
> launch tFile
>
> That should do it.
>
> len morgan

The error I get is:
Type		Handler: error in command
Object	OK
Line		FUNCTION getPathToFile pFile
Hint		FUNCTION

I've tried 'start FUNCTION', 'end FUNCTION' and other combinations but  
get the same error.
Any ideas?

Thanks,
Adrian



More information about the use-livecode mailing list