Drop the parenths. OTOH, put newfunction in a prg by itself & drop the function/procedure line.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Stirling Sent: Saturday, February 17, 2007 1:38 PM To: [email protected] Subject: Re: call a function in a program Thanks Dan I had tried Do newfunction() IN temp.prg WITH 'hi',mynum but that had given 'Invalid subscript reference' Learn something new every day. Andrew Stirling 01250 874580 http://www.calcpay.co.uk HMRC Accredited UK payroll program Dan Olsson wrote: > At 2007-02-17 18:47, you wrote: >> I'm trying to do >> =newfunction('hi',mynum) in temp.prg > > Do newfunction IN temp.prg WITH 'hi',mynum > > ****************************** > * Dan Olsson [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

