>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