Results 1 to 5 of 5

Thread: Class structure for three outputs

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2010
    Posts
    87

    Class structure for three outputs

    Could someone write me a Class structure for passing the data array below.

    Code:
    Function function1(Byval input1 as Double, Byval input2 as Double, Byval input3 as Double)
         'code'
         data.data1=value1
         data.data2=value2
         data.data3=value3
         function1=data
    End Function

  2. #2
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,598

    Re: Class structure for three outputs

    It not clear what you're asking. What array ? I dont see any in your code.

  3. #3
    Lively Member
    Join Date
    Jul 2010
    Posts
    66

    Re: Class structure for three outputs

    JUST USE THIS SAMPLE FOR OBJECT ARRAY WHICH U ASKED:

    CLASS:

    class data
    {
    public string data1{ get; set; }
    public string data2{ get; set; }
    public string data3{ get; set; }
    }
    **************
    MAIN PROGRAM:
    static void Main(string[] args)
    {
    static Data[] dt= new Data[10]; //**OBJECT ARRAY**//
    int i = 0;
    //***ASSIGNING SAMPLE INPUTS***//
    while (i != 10)
    {
    Data[i] = new Data();
    Data[i].data1= "Your Value1";
    Data[i].data2= "Your Value2";
    Data[i].data3= "Your Value3";
    i++;
    }
    }

  4. #4
    Lively Member
    Join Date
    Jul 2010
    Posts
    66

    Re: Class structure for three outputs

    Disregard above reply.. it is in C#.. just use same concept in VB.net use below example for you reference.....

    JUST USE THIS SAMPLE FOR OBJECT ARRAY WHICH U ASKED:

    CLASS:

    class data
    {
    public string data1{ get; set; }
    public string data2{ get; set; }
    public string data3{ get; set; }
    }
    **************
    MAIN PROGRAM:
    static void Main(string[] args)
    {
    static Data[] DataObj= new Data[10]; //**OBJECT ARRAY**//
    int i = 0;
    //***ASSIGNING SAMPLE INPUTS***//
    while (i != 10)
    {
    DataObj[i] = new Data();
    DataObj[i].data1= "Your Value1";
    DataObj[i].data2= "Your Value2";
    DataObj[i].data3= "Your Value3";
    i++;
    }
    }

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2010
    Posts
    87

    Re: Class structure for three outputs

    I need it for Visual Basic.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width