Apple Newton Utilities Guide de l'utilisateur Page 607

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 942
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 606
CHAPTER 16
Find
Using the Find Service 16-19
querySpecFrame :=
{
dateBefore : {
indexPath : 'timeStamp,
endKey: findTime,
},
dateAfter : {
indexPath : 'timeStamp,
beginKey: findTime,
},
dateOn : {
indexPath : 'timeStamp,
beginKey: kOneDay *
(findTime div kOneDay) ,
endKey: kOneDay + kOneDay *
(findTime div kOneDay) ,
}
};
local querySpec := querySpecFrame.(findType);
// Get the cursor.
myCursor := mySoup:Query(querySpec);
// Set up finder frame and add it to the results
// array.
if myCursor:Entry() then
begin
ourFinder := {
_proto: ROM_SoupFinder,
owner: self,
title: "My Application",
findType: findType,
findWords: [DateNTime(findTime)],
cursor: myCursor
};
AddArraySlot(results, ourFinder);
end;
end;
Adding Application Data Sets to Selected Finds 16
You can allow users to choose data sets in an application to search by adding the
AppFindTargets method and either or both of the FindTargeted or
DateFindTargeted methods. This functionality is useful when you want to
Vue de la page 606
1 2 ... 602 603 604 605 606 607 608 609 610 611 612 ... 941 942

Commentaires sur ces manuels

Pas de commentaire