Apple Newton Utilities Guia do Utilizador Página 607

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 942
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 606
1 2 ... 602 603 604 605 606 607 608 609 610 611 612 ... 941 942

Comentários a estes Manuais

Sem comentários