[progress Communities] [progress Openedge Abl] Forum Post: Re: Good Practice: Always Define...

  • Thread starter Thread starter Brian K. Maher
  • Start date Start date
Status
Not open for further replies.
B

Brian K. Maher

Guest
Hi Tom, FIND FIRST to find a unique record is also an abomination. Suppose there are two or more companies meeting your criteria? Why aren't you dealing with the rest of them? Or at least throwing an error that there should only be one? Why is the one that you just found magic? I disagree with this. If you know that the records are unique and a FIND will never return more than one record then FIND FIRST will actually save you a wee bit of time because the ABL doesn't have to do its check for duplicates (i.e. the AMBIGUOUS function). Outside of that corner case you are correct. Brian

Continue reading...
 
Status
Not open for further replies.
Back
Top