Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Compare two objects?
Message
De
21/08/2006 19:42:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/08/2006 16:59:03
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01147379
Message ID:
01147449
Vues:
22
>Nope, it just throws an error ("IDataForm is a Type and cannot be used in an expression")
>
>that was the first thing I tried.
>
>
>Thanks
>Brian Grant

Brian,
Though your code led to a guess you didn't tell it was VB. Viv, like me is a C#er and in C# it's easy (as Viv showed). In VB however you need TypeOf. Check:
Can this be interpreted as a bug? Thread #1125597 Message #1125597

ie:
if TypeOf myForm Is IDataForm then
' Life is hard with VB

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform