|
| |

VB.NET - Ein- und Umsteiger| Re: MsgBox(InStr("Hallo", "a")) | |  | | Autor: Manfred X | | Datum: 22.03.10 18:36 |
| Hallo!
Mein Vorschlag ist eine generische Methode, die
Du für beliebige Typen aufrufen kannst.
Der Aufruf benötigt genausoviel Code
wie das entsprechende IF oder IIF in VB.
Er arbeitet effizienter, weil beim Compiler
typspezifische Übersetzungen erstellt werden
und er vermeidet Laufzeitfehler, wenn
für die Parameter inkompatible Typen verwendet werden.
MfG
Manfred |  |
 MsgBox(InStr("Hallo", "a")) | 3.415 | Winihili | 22.03.10 15:31 |   Re: MsgBox(InStr("Hallo", "a")) | 2.296 | DaveS | 22.03.10 15:43 |    Re: MsgBox(InStr("Hallo", "a")) | 2.141 | Winihili | 22.03.10 16:05 |     Re: MsgBox(InStr("Hallo", "a")) | 2.227 | DaveS | 22.03.10 16:11 |      Re: MsgBox(InStr("Hallo", "a")) | 2.189 | Maas | 22.03.10 16:16 |       Re: MsgBox(InStr("Hallo", "a")) | 2.111 | DaveS | 22.03.10 16:22 |        Re: MsgBox(InStr("Hallo", "a")) | 2.091 | Maas | 22.03.10 16:26 |         Re: MsgBox(InStr("Hallo", "a")) | 2.066 | DaveS | 22.03.10 16:38 |          Re: MsgBox(InStr("Hallo", "a")) | 2.046 | Maas | 22.03.10 16:47 |           Re: MsgBox(InStr("Hallo", "a")) | 2.083 | Manfred X | 22.03.10 16:54 |            Re: MsgBox(InStr("Hallo", "a")) | 2.044 | GPM | 22.03.10 17:33 |             Re: MsgBox(InStr("Hallo", "a")) | 2.097 | Manfred X | 22.03.10 17:50 |              Re: MsgBox(InStr("Hallo", "a")) | 2.034 | Drapondur | 22.03.10 18:24 |              Re: MsgBox(InStr("Hallo", "a")) | 2.047 | Maas | 22.03.10 18:26 |               Re: MsgBox(InStr("Hallo", "a")) | 2.128 | Manfred X | 22.03.10 18:36 |                Re: MsgBox(InStr("Hallo", "a")) | 2.020 | Drapondur | 22.03.10 18:38 |                 Re: MsgBox(InStr("Hallo", "a")) | 1.984 | Manfred X | 22.03.10 18:48 |                  Re: MsgBox(InStr("Hallo", "a")) | 2.132 | Drapondur | 22.03.10 19:13 |                   Re: MsgBox(InStr("Hallo", "a")) | 2.108 | Manfred X | 22.03.10 19:55 |                    Re: MsgBox(InStr("Hallo", "a")) | 2.074 | Drapondur | 22.03.10 20:06 |           Re: MsgBox(InStr("Hallo", "a")) | 2.017 | DaveS | 22.03.10 16:55 |            Re: MsgBox(InStr("Hallo", "a")) | 2.053 | Maas | 22.03.10 18:24 |             Re: MsgBox(InStr("Hallo", "a")) | 2.208 | Drapondur | 22.03.10 18:28 |              Re: MsgBox(InStr("Hallo", "a")) | 1.934 | DaveS | 22.03.10 18:34 |         Re: MsgBox(InStr("Hallo", "a")) | 2.039 | RalfE | 23.03.10 12:33 |       Re: MsgBox(InStr("Hallo", "a")) | 1.991 | Manfred X | 22.03.10 16:28 |      Re: MsgBox(InStr("Hallo", "a")) | 2.115 | Winihili | 22.03.10 18:05 |       Re: MsgBox(InStr("Hallo", "a")) | 2.029 | Manfred X | 22.03.10 18:19 |        Re: MsgBox(InStr("Hallo", "a")) | 1.966 | Winihili | 22.03.10 19:06 |         Re: MsgBox(InStr("Hallo", "a")) | 2.037 | Maas | 22.03.10 19:10 |          Re: MsgBox(InStr("Hallo", "a")) | 1.978 | Winihili | 23.03.10 11:20 |           Re: MsgBox(InStr("Hallo", "a")) | 2.024 | RalfE | 23.03.10 11:22 |            Re: MsgBox(InStr("Hallo", "a")) | 2.025 | Winihili | 23.03.10 12:09 |             Re: MsgBox(InStr("Hallo", "a")) | 2.072 | RalfE | 23.03.10 12:30 |              Re: MsgBox(InStr("Hallo", "a")) | 2.003 | Winihili | 23.03.10 15:35 |               Re: MsgBox(InStr("Hallo", "a")) | 2.059 | DaveS | 23.03.10 16:24 |                Re: MsgBox(InStr("Hallo", "a")) | 2.003 | Winihili | 23.03.10 18:43 |              Re: MsgBox(InStr("Hallo", "a")) | 1.986 | Winihili | 25.03.10 19:07 |           Re: MsgBox(InStr("Hallo", "a")) | 2.035 | Maas | 23.03.10 16:42 |
 | Sie sind nicht angemeldet! Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.
Einloggen | Neu registrieren |
  |
|
sevISDN 1.0 
Überwachung aller eingehender Anrufe!
Die DLL erkennt alle über die CAPI-Schnittstelle eingehenden Anrufe und teilt Ihnen sogar mit, aus welchem Ortsbereich der Anruf stammt. Weitere Highlights: Online-Rufident, Erkennung der Anrufbehandlung u.v.m. Weitere InfosTipp des Monats Neu! sevPopUp 2.0 
Dynamische Kontextmenüs!
Erstellen Sie mit nur wenigen Zeilen Code Kontextmenüs dynamisch zur Laufzeit. Vordefinierte Styles (XP, Office, OfficeXP, Vista oder Windows 8) erleichtern die Anpassung an die eigenen Anwendung... Weitere Infos
|
| |
|
Copyright ©2000-2025 vb@rchiv Dieter Otter Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.
Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel
|
|