P
pjarvis
Hi guys,
Say for example i have a hypothetical function taking 4 parameters such as the one below:
public void InsertRow(char gender, double decimalAge, double height, double weight)
{
//Adds data into a MySQL database
}
If i have a piece of data missing such as height, but i still want to call the function that will add the other parameters into the database, how would i do it? I'd like to pass
a 'null' to the function, is there any way of achieving this without getting compiler errors?
Thanks in advance
Paul
Say for example i have a hypothetical function taking 4 parameters such as the one below:
public void InsertRow(char gender, double decimalAge, double height, double weight)
{
//Adds data into a MySQL database
}
If i have a piece of data missing such as height, but i still want to call the function that will add the other parameters into the database, how would i do it? I'd like to pass
a 'null' to the function, is there any way of achieving this without getting compiler errors?
Thanks in advance
Paul