Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!dlyons From: dlyons@Apple.COM (David A. Lyons) Newsgroups: comp.sys.apple2 Subject: Re: Still having REZ problems... Message-ID: <42598@apple.Apple.COM> Date: 3 Jul 90 08:20:05 GMT References: <9007011636.aa15929@ICS.UCI.EDU> Distribution: usa Organization: Apple Computer Inc, Cupertino, CA Lines: 51 In article <9007011636.aa15929@ICS.UCI.EDU> bmarlowe@BONNIE.ICS.UCI.EDU (Brett Marlowe) writes: > >resource rMenuItem(AboutItemID) { > AboutItemID, > '', <-- Error: expected string but got number (0) > '', > 0, > ItemTitleIsResource + rMIDivider, > AboutItemID; >}; > > > What's wrong with this? > >Thanks, >Brett I don't seem to have final versions of everything here at home, but the following rezzes just fine for me under RezIIgs 1.0b5. The only things I changed from yours (other than the #include and the #define, which you didn't show) are (1) changed '' to "" twice and (2) changed ItemTitleIsResource to RefIsResource, since my TypesIIgs.r doesn't define an ItemTitleIsResource. ---------- #include "typesiigs.r" #define AboutItemID 1 resource rMenuItem(AboutItemID) { AboutItemID, "", "", 0, RefIsResource + rMIDivider, AboutItemID; }; ---------- Here's the definition of an rMenuItem from my typesiigs.r. If you still haven't got it to work, send me *your* definition of rMenuItem from your Types.Rez file. (I'm using MPW IIgs, and I assume you're using APW, but REZ and RezIIgs are extremely compatible.) -- David A. Lyons, Apple Computer, Inc. | DAL Systems Apple II Developer Technical Support | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.