<HTML>
<BODY>
<br><font size=2 face="sans-serif">try instead</font>
<br>
<br><font size=2 face="sans-serif">if it is among the lines of btn "Kat2"</font>
<br>
<br>
<br><font size=2 face="sans-serif">---------------------=---------------------<br>
Xavier Bury<br>
Clearstream Services<br>
TNS NT LAN Server<br>
ext 36465<br>
Voice: +352 243 3 6465<br>
Fax: +352 243 63 6465</font>
<br>
<br><font size=2><tt>metacard-bounces@lists.runrev.com wrote on 29/09/2005
10:20:31:<br>
<br>
> Hi!</tt></font>
<br><font size=2><tt>> <br>
> I am looking for a better script line than:</tt></font>
<br><font size=2><tt>> if it is in btn "Kat2" then</tt></font>
<br><font size=2><tt>> because:</tt></font>
<br><font size=2><tt>> <br>
> I create a script for a popup-button with the possibility to fill
in<br>
> a new menu-line.</tt></font>
<br><font size=2><tt>> For to avoid a duplicate I wrote:</tt></font>
<br><font size=2><tt>> <br>
> on menuPick which</tt></font>
<br><font size=2><tt>> if which = "new subject" then</tt></font>
<br><font size=2><tt>> ask "Please fill out a new
subject!"</tt></font>
<br><font size=2><tt>> if it is empty then</tt></font>
<br><font size=2><tt>> exit menupick</tt></font>
<br><font size=2><tt>> else</tt></font>
<br><font size=2><tt>> if it is in btn "Kat2"
then</tt></font>
<br><font size=2><tt>> exit menupick</tt></font>
<br><font size=2><tt>> else</tt></font>
<br><font size=2><tt>> repeat with
i = 1 to 2</tt></font>
<br><font size=2><tt>> delete word-1
of btn "Kat2"</tt></font>
<br><font size=2><tt>> end repeat</tt></font>
<br><font size=2><tt>> put CR & it after
btn "Kat2"</tt></font>
<br><font size=2><tt>> sort btn "Kat2"</tt></font>
<br><font size=2><tt>> put CR & "new
subject" after btn "Kat2"</tt></font>
<br><font size=2><tt>> end if</tt></font>
<br><font size=2><tt>> end if</tt></font>
<br><font size=2><tt>> end if</tt></font>
<br><font size=2><tt>> end menuPick</tt></font>
<br><font size=2><tt>> <br>
> When now I fill in for example the new subject "Fossilien"</tt></font>
<br><font size=2><tt>> mc don't add "Fossilien" to the menulist
because</tt></font>
<br><font size=2><tt>> there is already the subject "Spurfossilien"
and "Fossilien" is a part of it</tt></font>
<br><font size=2><tt>> <br>
> This is my Button (Menu) Content:</tt></font>
<br><font size=2><tt>> <br>
> Brachiopoden</tt></font>
<br><font size=2><tt>> Gesteine</tt></font>
<br><font size=2><tt>> Korallen</tt></font>
<br><font size=2><tt>> Molusken</tt></font>
<br><font size=2><tt>> Schwaemme</tt></font>
<br><font size=2><tt>> Spurfossilien</tt></font>
<br><font size=2><tt>> Trilobiten</tt></font>
<br><font size=2><tt>> new subject</tt></font>
<br><font size=2><tt>> <br>
> What code will resolve my problem?</tt></font>
<br><font size=2><tt>> <br>
> Thanks</tt></font>
<br><font size=2><tt>> Reinhold</tt></font>
<br><font size=2><tt>> _______________________________________________<br>
> metacard mailing list<br>
> metacard@lists.runrev.com<br>
> http://lists.runrev.com/mailman/listinfo/metacard<br>
</tt></font>
<P><hr size=1></P>
<P><STRONG>
Visit us at http://www.clearstream.com<br> <br>IMPORTANT MESSAGE<br><br>Internet communications are not secure and therefore Clearstream<br>International does not accept legal responsibility for the contents of<br>this message.<br><br>The information contained in this e-mail is confidential and may be<br>legally privileged. It is intended solely for the addressee. If you are<br>not the intended recipient, any disclosure, copying, distribution or<br>any action taken or omitted to be taken in reliance on it, is<br>prohibited and may be unlawful. Any views expressed in this e-mail are<br>those of the individual sender, except where the sender specifically<br>states them to be the views of Clearstream International or of any of<br>its affiliates or subsidiaries.<br><br>END OF DISCLAIMER
</STRONG></P>
</BODY>
</HTML>