Is there a way that I can pass an enumerated type as a parameter? I'm looking for a way to pass a selected menu item that improves the readability of my program.
For example, in my main unit I have two menu items: Visual Schedule and Manual Schedule. I use the following code to create a global type (the type is declared outside of all procedures): type MenuItem = (VisualSched, ManualSched) The called procedure is found in another unit named Activator with a procedure named Actuate. The idea is to call the procedure from my main form using an enumerated type like this: Actuate(VisualSched); Case 1: I get an error telling me that the parameter type is different than the passed parameter. Case 2: I try to make the receiving procedure type byte. I get the same error. Case 3: I add the type definition from my main unit to the other unit - Activator. I get an error telling me that the data type between both units are different - even though I copied the code. These two routines can work when I change the parameter types to integer and forget the enumerated type. Thanks in advance for suggestions you may give! Ken ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

