
03/08/2009, 10:27
|
 | Colaborador | | Fecha de Ingreso: septiembre-2007 Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 17 años, 5 meses Puntos: 87 | |
Respuesta: Clase muy basica para que retorne algo tu paLabel debes especificarlo
si tienes
public void paLabel(string nom,string ape)
{
this.myNom = nom;
this.myApe = ape;
string imp = myNom + " " + myApe;
return;
}
public void le dice q ese metodo no retorna nada solo cambialo por
public string paLabel(string nom,string ape)
{
this.myNom = nom;
this.myApe = ape;
string imp = myNom + " " + myApe;
return imp;
}
PD: si vas empezando , te recomiendo leer sobre bases de .net y no tirarte a hacer aplicaciones web o windows o moviles sin saber como funciona .net en la base y aprender sobre la sintaxis de C# |