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
Re: Class structure for three outputs
It not clear what you're asking. What array ? I dont see any in your code.
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++;
}
}
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++;
}
}
Re: Class structure for three outputs
I need it for Visual Basic.