What I did in this case was to create a CURSOR like sParam( Code I)
APPEND BLANK IN sParam
Somewhere u get the code you are looking for and do a REPLACE into sParam.
And than "SELECT * FROM Cashier WHERE Cashier.Code=?sParam.Code " 
and so on...

HTH, E.

>________________________________
> From: "MB Software Solutions, LLC" 
> <[email protected]>
>To: ProFox Email List <[email protected]> 
>Sent: Thursday, May 24, 2012 12:24 PM
>Subject: [NF] MySQL views (not Fox views, but those created in MySQL) can't be 
>parameterized
> 
>Using MySQL5, it looks as though I can't create parameterized views. 
>I've read the online docs and they say "The SELECT statement cannot 
>refer to system or user variables."  Well, those user variables are what 
>we have as a parameterized view in VFP, right?
>
>So my plan B around this was to use VFP to cycle through the various 
>options and create the static views (hardcoded WHERE clauses to make up 
>for the lack of parm'd views).  Result: 8480 views created within seconds.
>
>Gotta love VFP's ability to dynamically generate code in other languages 
>(in this case, MySQL) for you!
>
>I suppose I could create stored routines instead.  Wondering about the 
>advantages of one over the other?
>
>-- 
>Mike Babcock, MCP
>MB Software Solutions, LLC
>President, Chief Software Architect
>http://mbsoftwaresolutions.com
>http://fabmate.com
>http://twitter.com/mbabcock16
>
>_______________________________________________
>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
>Searchable Archive: http://leafe.com/archives/search/profox
>This message: 
>http://leafe.com/archives/byMID/profox/[email protected]
>** 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.
>
>
>

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
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
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** 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.

Reply via email to