Regards, George
SCJP, SCJD, SCWCD, SCBCD
Originally posted by Frankie Cha:
My GUI allow search on the Hotel, Location and plus Date for your information. George mentioned earlier his have hotel and location.
Regards, George
SCJP, SCJD, SCWCD, SCBCD
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
Originally posted by Ste Graham:
How are people doing field specific searches using the String array? I can understand that using an array would be good just to send words (strings) and then just search x field(s) using these words. But if I wanted to search the name field and only the name field using the find method how would I specify that?
Regards, George
SCJP, SCJD, SCWCD, SCBCD
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
// Returns an array of record numbers that match the specified
// criteria.
// Field n in the database file is described by criteria[n].
// A null value in criteria[n] matches any field
// value. A non-null value in criteria[n] matches any field
// value that begins with criteria[n]. (For example, "Fred"
// matches "Fred" or "Freddy".)
public int [] find(String [] criteria)
Originally posted by Frankie Cha:
George, think you are right the second time.![]()
Regards, George
SCJP, SCJD, SCWCD, SCBCD