Hi Greg.

Is it not the case that if you use the "Assigns" option for the parameter, that your "set" line should have an "="

Employees(k).set = New_Employee //sets the k_th employee to be the new one

Russ

On Jun 24, 2006, at 3:36 AM, [EMAIL PROTECTED] wrote:

I have a class, say EmployeeClass, with a method SET which sets one to be another. (In fact someone from this list suggested this scheme originally!)

Employees(k).set New_Employee //sets the k_th employee to be the new one
// note that Employees(k) is defined above and exists

The set method for this class actually looks like
   (Parameter : Assigns C as EmployeeClass)
   name = c.name
   id = c.id
    etc

And I have used this type of thing for two years or so succesfully. I put some code to do this in a new place, and it just won't compile at all. It highlights the "employees(k).set" part and says that no such method exists. But it does exist and has existed for years. I suspect this is a case of some minor other thing being wrong, but RB is flagging it in a confusing way. Does anyone have a clue as to how to make this work or what could be causing the problem? Of
course I have tried various options without success.

thanks

Greg
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

Reply via email to