If I understand the question, no, you can't use a VFP UDF in a SQL passthrough query. I was just replying back to Man-Wai to clarify that a VFP SQL statement can call VFP UDFs and they can potentially be moving record pointers or changing work areas or anything else data related you might do with pure VFP.
-- rk -----Original Message----- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of AndyHC Sent: Tuesday, January 20, 2015 12:44 PM To: profoxt...@leafe.com Subject: Re: using select in a case Can you use a UDF in a *SQL* select statement? On 20/01/2015 23:04, Richard Kaye wrote: > It can if you use a VFP UDF. > > -- > > rk > -----Original Message----- > From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Man-wai > Chang > Sent: Tuesday, January 20, 2015 12:20 PM > To: profoxt...@leafe.com > Subject: Re: using select in a case > > A SQL SELECT also doesn't move the record pointer... :) > > On Tue, Jan 20, 2015 at 10:09 PM, Jean MAURICE <jsm.maur...@wanadoo.fr> wrote: >> I think that LOOKUP() can solve your issue ... > -- _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cy1pr10mb0218b2158525a67ae5b195b3d2...@cy1pr10mb0218.namprd10.prod.outlook.com ** 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.