Ask a Question related to Macromedia Director Lingo, Design and Development.
-
steve #1
CASE statement and CONTAINS
Hello,
Is it possible to add a 'contains' clause to the 'case' command? I know I
can do this:
case variableName OF
"foo":
doThis()
end case
But I'm trying to do this:
case variableName CONTAINS
"foo":
doThis()
end case
which does not work...
Is there a way to make this work, without having to do an 'IF/THEN' command?
Steve
steve Guest
-
sql select case statement
Hi, Im trying to put together a sql select case statement for coldfusion - can anyone please check over my code and see if i am going along the... -
List in case statement
Is there a way to use a list in a case statement? Can I substitute myList = in the case statement below? case(myVar) of 1, 4, 6, 9, 11: put... -
Case Statement
HI All, I use Macromedia Director and often use case statements so that I don't have to have a separate script for each button. An Example in... -
#23026 [Com]: Make Zend case-sensitive (classes, functions, remove case-insensitive)
ID: 23026 Comment by: nvivo at mandic dot com dot br Reported By: mfischer@php.net Status: Open Bug Type: ... -
Problems with CASE statement
Helpful folks, I seem to be misunderstanding the use of the CASE statement as used within a WHERE clause. I had thought that one could do the... -
Robert Tweed #2
Re: CASE statement and CONTAINS
"steve" <sbecerra@adelphia.net> wrote in message
news:bg9a9e$peh$1@forums.macromedia.com...Not exactly>
> Is it possible to add a 'contains' clause to the 'case' command? I know I
> can do this:
Lingo lets you reverse the clauses, like so:> I'm trying to do this:
>
> case variableName CONTAINS
> "foo":
> doThis()
> end case
case true of
variableName contains "foo":
doThis()
variableName contains "bar":
doThat()
end case
- Robert
Robert Tweed Guest
-
Robert Tweed #3
Re: CASE statement and CONTAINS
"Word of Mouth Productions" <lingoboy@wordofmo.com> wrote in message
news:bg9flv$4ur$1@forums.macromedia.com...Oops, sorry ;-)>
> Shame on you Robert for not testing...
- Robert
Robert Tweed Guest



Reply With Quote

