S
sparks
Ok I have a person class and a files class to output to a database.
the question I have is if person has name, and address for example
can I pass person object instead of each individual item in the class?
public class Person
{
private string Name;
private string Address;
}
a function in my files class would be something like this abreviation
public void Personrecord(Person)
INSERT INTO Personrecord (" + "Name , Address "+")
VALUES (' "+Name + " ' , ' " + Address +" ' )";
how can I pass a person instead of each variable, Name and Address?
It is hard for a nube since I am not sure "Exactly" how to ask this.
thank you for any and all help
Jerry
the question I have is if person has name, and address for example
can I pass person object instead of each individual item in the class?
public class Person
{
private string Name;
private string Address;
}
a function in my files class would be something like this abreviation
public void Personrecord(Person)
INSERT INTO Personrecord (" + "Name , Address "+")
VALUES (' "+Name + " ' , ' " + Address +" ' )";
how can I pass a person instead of each variable, Name and Address?
It is hard for a nube since I am not sure "Exactly" how to ask this.
thank you for any and all help
Jerry