Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Compare two objects?
Message
From
21/08/2006 19:42:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/08/2006 16:59:03
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01147379
Message ID:
01147449
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform