Author: howiem | Posted on: 7/26/2009 6:29:24 AM | Views : 898

Can I reuse a class structure... or....can I define it somewhere else that will facilite its reuse.
For the purpose of my illustration my structure is very simple. Currently it is in a class but I can't create a variable of type class.structure.....
 
I can't seem to be able to do this..
Dim CustStruct as MyClass.OrderLineDetails
So .....

'WHERE do I define this???
Structure OrderLineDetails
  Public PartNo As String
  Public CustNo As String
End Structure

So I can use it accross my application in different code behind pages.

page1.aspx.vb
Dim CustStruct as OrderLineDetails


page2.aspx.vb
Dim CustStruct as OrderLineDetails


Thanks in advance
 
Howie

 

...

Go to the complete details ...