better code than ' if it is in btn "Kat2" then '
xbury.cs at clearstream.com
xbury.cs at clearstream.com
Thu Sep 29 03:27:47 CDT 2005
try instead
if it is among the lines of btn "Kat2"
---------------------=---------------------
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 243 3 6465
Fax: +352 243 63 6465
metacard-bounces at lists.runrev.com wrote on 29/09/2005 10:20:31:
> Hi!
>
> I am looking for a better script line than:
> if it is in btn "Kat2" then
> because:
>
> I create a script for a popup-button with the possibility to fill in
> a new menu-line.
> For to avoid a duplicate I wrote:
>
> on menuPick which
> if which = "new subject" then
> ask "Please fill out a new subject!"
> if it is empty then
> exit menupick
> else
> if it is in btn "Kat2" then
> exit menupick
> else
> repeat with i = 1 to 2
> delete word-1 of btn "Kat2"
> end repeat
> put CR & it after btn "Kat2"
> sort btn "Kat2"
> put CR & "new subject" after btn "Kat2"
> end if
> end if
> end if
> end menuPick
>
> When now I fill in for example the new subject "Fossilien"
> mc don't add "Fossilien" to the menulist because
> there is already the subject "Spurfossilien" and "Fossilien" is a part
of it
>
> This is my Button (Menu) Content:
>
> Brachiopoden
> Gesteine
> Korallen
> Molusken
> Schwaemme
> Spurfossilien
> Trilobiten
> new subject
>
> What code will resolve my problem?
>
> Thanks
> Reinhold
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
-----------------------------------------
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.runrev.com/pipermail/metacard/attachments/20050929/05de6554/attachment.html
More information about the metacard
mailing list