Re: NTLK More programming questions

From: Jim Geldermann (jim_geldermann@dev-corp.com)
Date: Mon Jul 31 2000 - 05:33:44 CDT


In your projectData file put the following:

RemoveScript := func(partframe)
begin

   
//Cleanup your soup

        local mysoup := getstores()[0]:getsoup("MinnSoup:GELDERMANN");
                        if mySoup then mySoup:RemovefromStore();

        local tsoup := getstores()[0]:getsoup("TranSoup:GELDERMANN");
                        if tSoup then tSoup:RemovefromStore();
                        

print("We came to see a car wreck");
end;

>>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?
***************************************
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