Hi Adrian,
at the end of the function definition, you only put "end" and the name of the function - you don't include the parameter list.

On 2 Sep 2009, at 17:10, Adrian Williams wrote:

Len or anyone else have an answer to this,

'end FUNCTION' gives the error:

Handler: error in command
Object  OK
Line            FUNCTION getPathToFile pFile
Hint            FUNCTION

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

--To use:
put getPathFile("My App.exe") into tFile
launch tFile

That should do it.

len morgan

Ideas?
Thanks,
Adrian
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

--
Phil Jimmieson  p...@liverpool.ac.uk
Computer Science Dept., Liverpool University, Ashton Building, Ashton Street
Liverpool L69 3BX              http://www.csc.liv.ac.uk/~phil/
I used to sit on a special medical board... ...but now I use this ointment.




_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to