Hi,
I have a problem with the public class. I am trying to save the last
identifier which I am getting correctrly but when I try to read I am
getting 0. The public class is like this:
public class global_var
{
private int record_id;
public int int_record_id
{
set {record_id = value;}
get {return record_id;}
}
}
and the code to read is:
global_var GlobalVariables = new global_var();
MessageBox.Show(GlobalVariables.int_record_id.AsSt ring());
to set the value I am using:
GlobalVariables.int_record_id = some_int_figure_here;
many Thanks,
Jassim Rahma
*** Sent via Developersdex http://www.developersdex.com ***