• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

param for criteriaFind method

 
badari gururaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The instructions say
This method searches the database for entries matching the criteria supplied. Criteria take the form of a comma separated list of ]<field name>=<value to match> specifications.
But the Example string is
"Carrier='SpeedyAir',Origin='SFO'"
note the sigoe qoutes enclosing the <value to match> part.
I am a bit confused here...which one to use
could anyone clarify this for me please
cheers
badari
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My instructions a couple of years ago basically stated that the requirements were incomplete and at times contradictory and you'll just have to deal with that -- like in the real world.
You spotted a slight inconsistency in the requirements. It's up to you to make an executive decision about it: you can omit quotes, enforce quotes, or support both types of syntax.
- Peter
 
badari gururaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Peter
It IS about making decisons and defending them.

cheers
badari
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic