gettingstarted
[Top] [All Lists]

Re:

To: "Getting Started" <gettingstarted at lists dot realsoftware dot com>
Subject: Re:
From: Charles Yeomans <yeomans at desuetude dot com>
Date: Fri, 19 Dec 2003 16:22:35 -0500

On Friday, December 19, 2003, at 04:14  PM, Chris Davis wrote:

Hello,

I've been reading a book called Beginning Mac Programming. I was doing quite well working through the tutorials, but then I ran into a problem that I can't figure out. This is the code the book told me to type:
ToolsSelectionTool.Checked = ((nCurrentTool = 8) or (nCurrentTool = 9))

When I attempt to run the program it goes to this line and says "This method requires more parameters than were passed". Now when I worked back to the ToolsSelectionTool menu handler the book shows the code for this menu handler starts off like this:

Function Action As Boolean

but mine starts off like this:

Function Action(Index As Integer) As Boolean

Can anyone please help me? I would have emailed the author, but I didn't find any contact information in the book. Thank You!


The presence of the Index parameter means that the MenuItem is part of a MenuItem array; that is, it has a value entered in the Index property in the Property browser for the MenuItem. It could be that you typed a number in it by accident.

Charles Yeomans


- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>