none
quote RRS feed

  • Question

  • hello everyone,i have a question:

    now i have define a var in one process,and how can quote it in another process?

    like

    private void button1_Click(object sender, System.EventArgs e)
      {
       
       DataSet ds = new DataSet();
       DataView dv = new DataView();

       
       
      }

    and another

    private void button2_Click(object sender, System.EventArgs e)
      {
       
       here i like to quote the ds above,how can do it?

       
       
      }


     

    Friday, August 25, 2006 7:10 AM

Answers

  • Make it a member variable

    class c

    {

     private DataSet ds;

      public c()

    {

      ds = new DataSet(); 

    }

    button1_click

    {

    ds = blah

    }

     

    button2_click

    {

    //Do what yuo want with it.

    }

    }

     

    Friday, August 25, 2006 7:19 AM
    Moderator