http://www.newton-inc.com/dev/techinfo/qa/qa.htm
GetExtraIcons
result in an undefined Query
method exception. How can I fix this?GetExtraIcons
. The code is not checking if the store has any extras information on it, so the Query
message is getting sent to a NIL
soup. The result is the exception.GetExtraIcons
: try
GetExtraIcons(...)
// do whatever you need to do here
onexception |evt.ex.fr.intrp;type.ref.frame| do
begin
// check for a problem calling the Query function
if currentException().data.errorCode = -48809 AND
currentException().data.symbol = 'Query then
begin
// no extras drawer info on the store
end ;
else
// a real error has occured, so let system handle it
ReThrow() ;
end ;