Ben Pope wrote:
Werner Masik wrote:
Hello!
I have a strange flowscript problem with a switch/case. The code is
a function that should display a list of persons (using a repeater).
Every row of the repeater contains a submit button for editing and
deleting. When a button is pressed the form gets submitted and the
next action is decided by a If/then or a Switch/case that compares
the ID of the submit-widget. The strange behaviour is that when I
press the edit button (with submit-ID=editPerson) the switch/case
compare does not seem to work. The If/then works. Is it possible that
switch/case only works with integer? Or maybe it is just a stupid
mistake I don't see now. But the code is based on
http://www.planetcocoon.com/node/1715#comment
So I think it should work. If anybody has an idea, please let me know.
I recall reading something about switching on strings... have a look
here:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=111056231409589&w=2
and here:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=110865972811342&w=2
This link says it all. Looks like the switch statement only works in 2.2
as expected. I had a lot of headache because of this problem. Thank's
for finding out the links.
Werner
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
begin:vcard
fn:Werner Masik
n:Masik;Werner
org:GEFi Informationstechnik und Datenservice
adr:;;Reisenbauerring 5/1/12;Wiener Neudorf;;2351;Austria
email;internet:[EMAIL PROTECTED]
tel;work:+43 2236 304 224
tel;cell:+43 676 5289757
x-mozilla-html:FALSE
url:http://www.gefi.at
version:2.1
end:vcard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]