Roel De Nijs wrote:
The getHotelRoomRecord-method just does the same like your code: if the index is valid (between 0 and record count), it returns the room. Otherwise null is returned.
permaculture is a more symbiotic relationship with nature so I can be even lazier. Read tiny ad:
Two software engineers solve most of the world's problems in one K&R sized bookhttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton