Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!mentor.cc.purdue.edu!j.cc.purdue.edu!pur-ee!pur-phy!murphy From: murphy@pur-phy (William J. Murphy) Newsgroups: comp.sys.amiga.tech Subject: Re: Programming multiple Menu Selections Message-ID: <2136@pur-phy> Date: 12 Apr 89 13:53:47 GMT References: <2124@pur-phy> <172S26aXLs10100WHNE@amdahl.uts.amdahl.com> Reply-To: murphy@newton.physics.purdue.edu (William J. Murphy) Organization: Purdue Univ. Physics Dept., W. Lafayette, IN Lines: 18 In article <172S26aXLs10100WHNE@amdahl.uts.amdahl.com> kevin@amdahl.uts.amdahl.com (Kevin Clague) writes: >In article <2124@pur-phy> murphy@newton.physics.purdue.edu (William J. Murphy) writes: >> >>if ((number = ItemAddress(main_menu[0], number)-NextSelect) == NULL) >Could this be your problem? ^^^ Kevin found my problem, I should be sending an address to the function and not a value. The correct statement is number = ItemAddress( &main_menu[0], number)->NextSelect); if (number == NULL) { number = MENUNULL; } This seems to work fine now. Thanks, Bill Murphy