Password problem

Hi,

Im new to the Arduino world and new to programming.
I'm trying to set a new password and save it.

in declarations :
Password password = Password( "0000" );
Password newcode = Password( "0000" );

getting the entries from keypad :
newcode.append(eKey);

when entry is finished :
char buff[5]="";
newcode.toCharArray(buff, sizeof(buff));
password.set(buff);

This is the error I get :

error: 'class Password' has no member named 'toCharArray'

Any opinions? probably a stupide error from my side :o

Sigh...

Let's see your whole program please, making sure that you post it in code tags

Any opinions? probably a stupide error from my side

Yes. Why do you think that the Password class, that newCode is an instance of, has a toCharArray() method? That is a method in the String class.