I don't understand the SWITCH command?

xbury.cs at clearstream.com xbury.cs at clearstream.com
Tue Jan 13 09:54:10 EST 2004


I noticed... then took a break ;)

On 13/01/2004 15:54:58 use-revolution-bounces wrote:
>Thank you everybody!
>
>It works now.
>
>Xbury :"But the problem is surely with the usage of the "selectedline" 
where
>you should use the hilitedline... For ListBehavior fields, the
>selectedline
>doesn't work..."
>
>You know, the "selectedline" works here fine by me!
>
>
>Amicalement
>François
>
>
>--------------
>François Cuneo
>Site Web dédié au Macintosh http://www.cuk.ch
>E-mail: francois.cuneo at cuk.ch
>
>> De : Wouter <wouter.abraham at pi.be>
>> Répondre à : How to use Revolution <use-revolution at lists.runrev.com>
>> Date : Tue, 13 Jan 2004 14:45:45 +0100
>> À : use-revolution at lists.runrev.com
>> Objet : Re: I don't understand the SWITCH command?
>>
>>
>> On 13 Jan 2004, at 13:58, use-revolution-request at lists.runrev.com 
wrote:
>>
>>> Message: 10
>>> Date: Tue, 13 Jan 2004 13:59:54 +0100
>>> From: Fran?ois Cuneo <francois.cuneo at cuk.ch>
>>> Subject: I don't understand the SWITCH command?
>>> To: How to use Revolution <use-revolution at lists.runrev.com>
>>> Message-ID: <BC29AA5A.FBDB%francois.cuneo at cuk.ch>
>>> Content-Type: text/plain; charset="ISO-8859-1"
>>>
>>> Hello everybody!
>>> I have a problem with the "Switch" command.
>>> Here is my little Code:
>>>
>>> on mouseup
>>>   put word 2 of the selectedline of me into nbcalc
>>>
>>>   switch nbcalc
>>>
>>>   case 1
>>>     put 0 into fld "nbcalc"
>>
>>       break   #### otherwise it will fall through to the next case
>>
>>>
>>>   case 2
>>>
>>>     put 2 into fld "nbcalc"
>>       break  ### necessary if a default case is following
>>
>>>   end switch
>>>
>>> end mouseup
>>>
>>> It's always the case 2 that's done, even if the nbcalc is 1!
>>> What's wrong please?
>>>
>>>
>>> Amicalement
>>> François
>>>
>>>
>>> --------------
>>> François Cuneo
>>> Site Web dédié au Macintosh http://www.cuk.ch
>>> E-mail: francois.cuneo at cuk.ch
>>
>>
>> Greetings,
>> WA
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution

Visit us at http://www.clearstream.com
                                                          
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.

END OF DISCLAIMER


More information about the use-livecode mailing list