On Tue, Jan 20, 2015 at 8:00 AM, Allen <[email protected]> wrote:
> Hi Foxgang > > I have a need in a case to read a field and select case depending on the > result. > Normally I would just make a UDF and locate and return the field value. > I am wondering though if there is a simple way avoiding extra methods. > > Example > > Case GetVal(2) = 6 > > > Function GetVal > LParameters LookFor > Select MyTable > Locate for Field1 = LookFor > Return Field2 > > Simplified but the idea is there. > > I'm wondering if the case can handle that in the line rather than the > separate proggy. > > Sort of case select Field2 from MyTable where Field1 = 2 = 6 > > Al > ----------- Why not an iif() -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] 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/CAJidMY+2tYPfkf=jcpq3xq6w33cnj_iw6uh1zs-vu6e_vsv...@mail.gmail.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.

