| |
VB.NET - Ein- und UmsteigerRe: MsgBox(InStr("Hallo", "a")) | | | Autor: Drapondur | Datum: 22.03.10 19:13 |
| Falsch.
Auch mit Option Strict Off kann ich das hier nicht kompilieren.
Dim cl As Object = If(True, Color.AliceBlue, Point.Empty) Das hier Dim cl As Object = If(True, Color.AliceBlue, Color.AntiqueWhite) ergibt dekompiliert (nach C#, weil man es nach VB dekompiliert im Reflector nicht richtig sieht):
object cl = (1 != 0) ? Color.AliceBlue : Color.AntiqueWhite; , was typsicher ist.
Der Unterschied zw. If und Deiner Funktion besteht nur darin, dass Du ein generisches Argument angeben kannst und dass Intellisense bei Deiner Funktion nicht "Object" für die Argumente anzeigt. | |
MsgBox(InStr("Hallo", "a")) | 3.275 | Winihili | 22.03.10 15:31 | Re: MsgBox(InStr("Hallo", "a")) | 2.193 | DaveS | 22.03.10 15:43 | Re: MsgBox(InStr("Hallo", "a")) | 2.041 | Winihili | 22.03.10 16:05 | Re: MsgBox(InStr("Hallo", "a")) | 2.125 | DaveS | 22.03.10 16:11 | Re: MsgBox(InStr("Hallo", "a")) | 2.058 | Maas | 22.03.10 16:16 | Re: MsgBox(InStr("Hallo", "a")) | 1.986 | DaveS | 22.03.10 16:22 | Re: MsgBox(InStr("Hallo", "a")) | 1.973 | Maas | 22.03.10 16:26 | Re: MsgBox(InStr("Hallo", "a")) | 1.953 | DaveS | 22.03.10 16:38 | Re: MsgBox(InStr("Hallo", "a")) | 1.947 | Maas | 22.03.10 16:47 | Re: MsgBox(InStr("Hallo", "a")) | 1.985 | Manfred X | 22.03.10 16:54 | Re: MsgBox(InStr("Hallo", "a")) | 1.946 | GPM | 22.03.10 17:33 | Re: MsgBox(InStr("Hallo", "a")) | 1.971 | Manfred X | 22.03.10 17:50 | Re: MsgBox(InStr("Hallo", "a")) | 1.933 | Drapondur | 22.03.10 18:24 | Re: MsgBox(InStr("Hallo", "a")) | 1.945 | Maas | 22.03.10 18:26 | Re: MsgBox(InStr("Hallo", "a")) | 2.024 | Manfred X | 22.03.10 18:36 | Re: MsgBox(InStr("Hallo", "a")) | 1.923 | Drapondur | 22.03.10 18:38 | Re: MsgBox(InStr("Hallo", "a")) | 1.883 | Manfred X | 22.03.10 18:48 | Re: MsgBox(InStr("Hallo", "a")) | 2.017 | Drapondur | 22.03.10 19:13 | Re: MsgBox(InStr("Hallo", "a")) | 2.007 | Manfred X | 22.03.10 19:55 | Re: MsgBox(InStr("Hallo", "a")) | 1.963 | Drapondur | 22.03.10 20:06 | Re: MsgBox(InStr("Hallo", "a")) | 1.917 | DaveS | 22.03.10 16:55 | Re: MsgBox(InStr("Hallo", "a")) | 1.956 | Maas | 22.03.10 18:24 | Re: MsgBox(InStr("Hallo", "a")) | 2.058 | Drapondur | 22.03.10 18:28 | Re: MsgBox(InStr("Hallo", "a")) | 1.832 | DaveS | 22.03.10 18:34 | Re: MsgBox(InStr("Hallo", "a")) | 1.932 | RalfE | 23.03.10 12:33 | Re: MsgBox(InStr("Hallo", "a")) | 1.894 | Manfred X | 22.03.10 16:28 | Re: MsgBox(InStr("Hallo", "a")) | 2.007 | Winihili | 22.03.10 18:05 | Re: MsgBox(InStr("Hallo", "a")) | 1.928 | Manfred X | 22.03.10 18:19 | Re: MsgBox(InStr("Hallo", "a")) | 1.865 | Winihili | 22.03.10 19:06 | Re: MsgBox(InStr("Hallo", "a")) | 1.938 | Maas | 22.03.10 19:10 | Re: MsgBox(InStr("Hallo", "a")) | 1.880 | Winihili | 23.03.10 11:20 | Re: MsgBox(InStr("Hallo", "a")) | 1.930 | RalfE | 23.03.10 11:22 | Re: MsgBox(InStr("Hallo", "a")) | 1.919 | Winihili | 23.03.10 12:09 | Re: MsgBox(InStr("Hallo", "a")) | 1.972 | RalfE | 23.03.10 12:30 | Re: MsgBox(InStr("Hallo", "a")) | 1.902 | Winihili | 23.03.10 15:35 | Re: MsgBox(InStr("Hallo", "a")) | 1.960 | DaveS | 23.03.10 16:24 | Re: MsgBox(InStr("Hallo", "a")) | 1.896 | Winihili | 23.03.10 18:43 | Re: MsgBox(InStr("Hallo", "a")) | 1.875 | Winihili | 25.03.10 19:07 | Re: MsgBox(InStr("Hallo", "a")) | 1.933 | 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 |
|
|
sevAniGif (VB/VBA)
Anzeigen von animierten GIF-Dateien
Ab sofort lassen sich auch unter VB6 und VBA (Access ab Version 2000) animierte GIF-Grafiken anzeigen und abspielen, die entweder lokal auf dem System oder auf einem Webserver gespeichert sind. 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-2024 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
|
|