[Pythoncard-users] changes to Find in the flatfileDatabase
by Kevin Altis other posts by this author
May 29 2002 12:17AM messages near this date
[Pythoncard-users] latest fixes for Mac OS X
|
Re: RE: [Pythoncard-users] OK, Folks, What Docs Do You Want Next?
I just checked in a fairly substantial change to how find works for the
flatfileDatabase sample. I'll probably roll the changes back into the
addresses sample too once I've had a chance to do more testing and refactor
the code a bit to simplify it, the algorithm is brute force right now.
Fields are searched according to their component order and searches start
from the current field selection, so it works more like all the fields are
part of one big field. Only visible text (TextField, PasswordField,
TextArea, CodeEditor, RightTextField) fields are searched. Searches should
be much faster since records are searched in memory and no longer displayed
unless there is a match.
I added a Find Next as well. Both Find... and Find Next menu items have been
moved to the Edit menu.
Please report any exceptions thrown or any search behavior that doesn't work
as expected.
ka
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
|