Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Single Quotes Around Value in criteriaFind Strin

 
David Reck
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my criteriaFind method when I get to the value in the name value pair I end up having to strip off the single quotes in the search string. So that the values in "Origin='SFO',Destination='DAL'" become SFO and DAL not 'SFO' and 'DAL'. Am I missing something? Are the single quotes there for a reason?
 
Rick Fortier
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David Reck:
In my criteriaFind method when I get to the value in the name value pair I end up having to strip off the single quotes in the search string. So that the values in "Origin='SFO',Destination='DAL'" become SFO and DAL not 'SFO' and 'DAL'. Am I missing something? Are the single quotes there for a reason?

They are being used as delimiters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic