From: Jaime Méndez (servafin_at_prodigy.net.mx)
Date: Tue Oct 19 2004 - 11:08:40 PDT
Hi,
Could anybody help me with this?
I wat to get an entry slot value in a soup. I have the slot name in a
varible: slotName:="name". The entry namy is myEntry.
What I do is de following:
for each item, value in myEntry do
if strEqual(item&"", slotName) then myValue:=value;
It compares the string value of each slot symbol in myEntry with the string
value of the vaiable slotName.
It works, I do get the slot value in myValue.
The question:
How do I change the slot value of myEntry?
The following did not work:
for each item, value in myEntry do
if strEqual(item&"", slotName) then
begin
value:= otherValue;
EntryChangeXmit(myEntry,nil);
end;
What am I doing wrong?
I can not do this:
myEntry.slotName:=otherValue;
EntryChangeXmit(myEntry,nil);
because slotName is a string not a symbol.
Thanks,
Jaime Méndez.
-- This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries Official Newton FAQ: http://www.chuma.org/newton/faq/ WikiWikiNewt for all kinds of articles: http://tools.unna.org/wikiwikinewt/
This archive was generated by hypermail 2.1.5 : Tue Oct 19 2004 - 11:30:02 PDT