-
Feb 20th, 2012, 08:29 AM
#1
Thread Starter
Lively Member
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
-
Feb 20th, 2012, 08:35 AM
#2
Re: Class structure for three outputs
It not clear what you're asking. What array ? I dont see any in your code.
-
Feb 20th, 2012, 08:49 AM
#3
Lively Member
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++;
}
}
-
Feb 20th, 2012, 08:51 AM
#4
Lively Member
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++;
}
}
-
Feb 20th, 2012, 09:30 AM
#5
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|