Finally, someone that understands what the hell I'm talking about. On Tue, Feb 14, 2012 at 1:17 PM, Paul Hill <[email protected]> wrote:
> On Tue, Feb 14, 2012 at 1:56 AM, Ken Dibble <[email protected]> wrote: > > You can't concatenate anything containing "&&" to a string in VFP. That > > surprised me, frankly, but you can't. It won't work; you'll get "Command > > contains unrecognized phrase/keyword": > > > > myvar = "Select * From Users where username = '" && ok > > myvar = myvar + "admin' &&" && Error! > > myvar = myvar + "admin'" && ok > > myvar = myvar + " &&" && Error! > > myvar = "" && ok > > myvar = myvar + "&&" && Error! > > Hi Ken, > > This is just a parsing restriction as VFP sees '&&' as the start of a > comment. > In a running program this will work fine. > > -- > Paul > [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 Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CAH=CQD+e-CyPbx=YZXHVPOvbkA3cko+G1A=eot04i2++dv5...@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.

