Hallo,
gibt es in Realbasic eine Möglichkeit bei einer if-Abfrage
gleichzeitig nicht nur einen Parameter zu testen sondern x-beliebig
viele?
Also z.B.:
If Name = "Meier" / "Huber" / "Bauer" / "Schmidt" then
. . .
End If
wobei der Schrägstrich die gesuchte Operation sein soll (oder gibt's
z.B. sowas ähnliches wie "set of" bei Delphi?)
Danke schon im Voraus für eure Hilfe!
Johannes
From Wed 29 Aug 2007 21:06:13 +0200
Return-Path: <realbasic-nug dot de-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id A72733F5CD2A; Wed, 29 Aug 2007 12:07:16 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-2.5 required=4.5 tests=AWL,BAYES_00 autolearn=ham
version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
by xmail.realsoftware.com (Postfix) with ESMTP id F07423F5CD1C;
Wed, 29 Aug 2007 12:07:11 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP id 8DDAF5DF45F;
Wed, 29 Aug 2007 14:07:00 -0500 (CDT)
X-Original-To: realbasic-nug dot de at lists dot realsoftware dot com
Delivered-To: realbasic-nug dot de at lists dot realsoftware dot com
Received: from smtprelay07.ispgateway.de (smtprelay07.ispgateway.de
[80.67.29.7])
by lists.realsoftware.com (Postfix) with ESMTP id C17F85DF454
for <realbasic-nug dot de at lists dot realsoftware dot com>;
Wed, 29 Aug 2007 14:06:55 -0500 (CDT)
Received: (qmail 13961 invoked from network); 29 Aug 2007 19:07:05 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 91 dot
102])
(envelope-sender <support at monkeybreadsoftware dot de>)
by smtprelay07.ispgateway.de (qmail-ldap-1.03) with SMTP
for <realbasic-nug dot de at lists dot realsoftware dot com>;
29 Aug 2007 19:07:05 -0000
To: realbasic-nug dot de at lists dot realsoftware dot com (REALbasic NUG
German)
In-Reply-To: <6C6A35D2-99F7-4FF1-8268-DCA9FDDABA9B at gmx dot de>
Subject: Re: Mengen
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Wed, 29 Aug 2007 21:06:13 +0200
Message-ID: <1i3ml9r dot uqs3bo1nq0j2qM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.8 (Mac OS X version 10.4.9 (PPC))
X-BeenThere: realbasic-nug dot de at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic NUG German <realbasic-nug dot de at lists dot realsoftware dot
com>
Sender: realbasic-nug dot de-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug dot de-bounces at lists dot realsoftware dot com
Johannes Ungerer <johannes dot ungerer at gmx dot de> wrote:
Hallo,
gibt es in Realbasic eine Möglichkeit bei einer if-Abfrage
gleichzeitig nicht nur einen Parameter zu testen sondern x-beliebig
viele?
Also z.B.:
If Name = "Meier" / "Huber" / "Bauer" / "Schmidt" then
. . .
End If
if Name="Meier" or Name="Huber" or name="Bauer" or Name="Schmidt" then
end if
Gruß
Christian
--
Over 800 classes with 15000 functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin v7.4.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
|