| |

VB.NET - Ein- und UmsteigerRe: 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.392 | Winihili | 22.03.10 15:31 |   Re: MsgBox(InStr("Hallo", "a")) | 2.281 | DaveS | 22.03.10 15:43 |    Re: MsgBox(InStr("Hallo", "a")) | 2.130 | Winihili | 22.03.10 16:05 |     Re: MsgBox(InStr("Hallo", "a")) | 2.216 | DaveS | 22.03.10 16:11 |      Re: MsgBox(InStr("Hallo", "a")) | 2.160 | Maas | 22.03.10 16:16 |       Re: MsgBox(InStr("Hallo", "a")) | 2.086 | DaveS | 22.03.10 16:22 |        Re: MsgBox(InStr("Hallo", "a")) | 2.075 | Maas | 22.03.10 16:26 |         Re: MsgBox(InStr("Hallo", "a")) | 2.050 | DaveS | 22.03.10 16:38 |          Re: MsgBox(InStr("Hallo", "a")) | 2.036 | Maas | 22.03.10 16:47 |           Re: MsgBox(InStr("Hallo", "a")) | 2.073 | Manfred X | 22.03.10 16:54 |            Re: MsgBox(InStr("Hallo", "a")) | 2.032 | GPM | 22.03.10 17:33 |             Re: MsgBox(InStr("Hallo", "a")) | 2.070 | Manfred X | 22.03.10 17:50 |              Re: MsgBox(InStr("Hallo", "a")) | 2.024 | Drapondur | 22.03.10 18:24 |              Re: MsgBox(InStr("Hallo", "a")) | 2.034 | Maas | 22.03.10 18:26 |               Re: MsgBox(InStr("Hallo", "a")) | 2.114 | Manfred X | 22.03.10 18:36 |                Re: MsgBox(InStr("Hallo", "a")) | 2.011 | Drapondur | 22.03.10 18:38 |                 Re: MsgBox(InStr("Hallo", "a")) | 1.974 | Manfred X | 22.03.10 18:48 |                  Re: MsgBox(InStr("Hallo", "a")) | 2.123 | Drapondur | 22.03.10 19:13 |                   Re: MsgBox(InStr("Hallo", "a")) | 2.098 | Manfred X | 22.03.10 19:55 |                    Re: MsgBox(InStr("Hallo", "a")) | 2.059 | Drapondur | 22.03.10 20:06 |           Re: MsgBox(InStr("Hallo", "a")) | 2.006 | DaveS | 22.03.10 16:55 |            Re: MsgBox(InStr("Hallo", "a")) | 2.041 | Maas | 22.03.10 18:24 |             Re: MsgBox(InStr("Hallo", "a")) | 2.187 | Drapondur | 22.03.10 18:28 |              Re: MsgBox(InStr("Hallo", "a")) | 1.921 | DaveS | 22.03.10 18:34 |         Re: MsgBox(InStr("Hallo", "a")) | 2.026 | RalfE | 23.03.10 12:33 |       Re: MsgBox(InStr("Hallo", "a")) | 1.979 | Manfred X | 22.03.10 16:28 |      Re: MsgBox(InStr("Hallo", "a")) | 2.095 | Winihili | 22.03.10 18:05 |       Re: MsgBox(InStr("Hallo", "a")) | 2.018 | Manfred X | 22.03.10 18:19 |        Re: MsgBox(InStr("Hallo", "a")) | 1.955 | Winihili | 22.03.10 19:06 |         Re: MsgBox(InStr("Hallo", "a")) | 2.027 | Maas | 22.03.10 19:10 |          Re: MsgBox(InStr("Hallo", "a")) | 1.968 | Winihili | 23.03.10 11:20 |           Re: MsgBox(InStr("Hallo", "a")) | 2.015 | RalfE | 23.03.10 11:22 |            Re: MsgBox(InStr("Hallo", "a")) | 2.008 | Winihili | 23.03.10 12:09 |             Re: MsgBox(InStr("Hallo", "a")) | 2.062 | RalfE | 23.03.10 12:30 |              Re: MsgBox(InStr("Hallo", "a")) | 1.993 | Winihili | 23.03.10 15:35 |               Re: MsgBox(InStr("Hallo", "a")) | 2.049 | DaveS | 23.03.10 16:24 |                Re: MsgBox(InStr("Hallo", "a")) | 1.993 | Winihili | 23.03.10 18:43 |              Re: MsgBox(InStr("Hallo", "a")) | 1.973 | Winihili | 25.03.10 19:07 |           Re: MsgBox(InStr("Hallo", "a")) | 2.024 | 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 |
  |
|
Neu! sevDTA 3.0 Pro 
SEPA mit Kontonummernprüfung
Erstellen von SEPA-Dateien mit integriertem BIC-Verzeichnis und Konto- nummern-Prüfverfahren, so dass ungültige Bankdaten bereits im Vorfeld ermittelt werden können. Weitere InfosTipp des Monats Access-Tools Vol.1 
Über 400 MByte Inhalt
Mehr als 250 Access-Beispiele, 25 Add-Ins und ActiveX-Komponenten, 16 VB-Projekt inkl. Source, mehr als 320 Tipps & Tricks für Access und VB
Nur 24,95 EURWeitere 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
|
|