Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you get this done?
Message
From
23/01/2009 15:15:34
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
23/01/2009 15:05:39
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01376440
Message ID:
01376628
Views:
7
>OK. I think I'm on the home stretch on this one with one exception. I have an enumeration "Direction" as follows:
>
>enum Direction { Next, Previous, First, Last, Refresh };
>
>I've tried to use it as follows:
>
>if (this.TopLevelControl is AppObject)
>{
>App thisApp = ((AppObject)this.TopLevelControl).oApp;
>thisApp.db.Navigate(TableName, Direction.Next);
>}
>
>Here's the error:
>
>The name 'Direction' does not exist in the current context
>
>I've tried duplicating the enum from my db object in this button object and I get this error:
>
>Argument '2': cannot convert from 'Marketware.NextButton.Direction' to 'Marketware.Db.Direction'
>
>How do I get this enum to work in this button? THANKS!!
>
>Bob
>
Sounds like you need to make this enum public and eliminate the second creation of it. It looks as though you have this defined in two different namespaces.
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform