Hi, Steve,
Thanks for catching the store != s error. I corrected that, but my
deletion script still doesn't get run. I've tried putting a notification in
it so I'd know if it ran, and it still didn't run. It looks like the
deletion script isn't getting called at all. Most of the programming docs I
have are oriented towards programming Newtons with a Mac, but I'm using
Windows. Do you know if there is anything special you need to do to get NTK
to generate a deletion script properly? Do you have to use a special file
name for the text file containing the script?
Thanks,
Jim Anderson
"Roly-poly fish heads are never seen drinking cappuccino in Italian
restaurants with oriental women...yeah..."
> -----Original Message-----
> From: Steve Weyer [mailto:sweyer@bellatlantic.net]
> Sent: Saturday, July 29, 2000 4:53 AM
> To: newtontalk@planetnewton.com
> Subject: Re: NTLK More programming questions
>
>
> >Date: Fri, 28 Jul 2000 13:22:39 -0700
> >From: Jim Anderson <jiman@microsoft.com>
> >
> > I'm using the Windows version of NTK, and I want to add
> a deletion
> >script to an app. I've added a text file containing this code:
> >
> >SetPartFrameSlot('deletionScript, func()
> >begin
> > foreach store in GetStores() do
> > if s:HasSoup("ObStrat:NarcFish") then
> >
> s:GetSoup("ObStrat:NarcFish"):RemoveFromStoreXmit
> >('|ObStrat:NarcFish|);
> >end);
> >
> > When I scrub the app, though, the deletion script doesn't get
> >called. I'm pretty sure I've written the code correctly. Is
> there something
> >else I need to do to get this to work?
>
>
> have you tried running with NTK Inspector turned on -- to see possible
> error messages?
> one likely problem is that you're using foreach store but
> undeclared s as
> actual variable?
>
> Steve
> weyer@kagi.com
> NewtDevEnv, Newt's Cape, Sloup, Crypto,...
> http://members.bellatlantic.net/~sweyer/newton/index.htm
> http://www.kagi.com/weyer
>
>
> ***************************************
> NewtonTalk brought to you by:
>
> EVOTE.COM -- the ESPN of politics on the Internet! All the
> players, all the news, and the hottest analysis and features
> (plus 'toons!) anywhere.... visit http://www.evote.com today!
>
> ***************************************
> Need Subscribe/Unsubscribe info?
>
> Visit the NewtonTalk section at http://www.planetnewton.com
>
***************************************
NewtonTalk brought to you by:
EVOTE.COM -- the ESPN of politics on the Internet! All the players, all the news, and the hottest analysis and features (plus 'toons!) anywhere.... visit http://www.evote.com today!
***************************************
Need Subscribe/Unsubscribe info?
Visit the NewtonTalk section at http://www.planetnewton.com
This archive was generated by hypermail 2b29 : Tue Aug 01 2000 - 06:50:09 CDT