• 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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!