|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Design Patern Required
Hi All,
I think I need a design pattern for a link list to an indeterminate level. Here's the problem. A structure may comprise of products and Structures. So Structure 'A' has Product x product y structure Z Structure Z has Product a Structure B Structure B has Product D Structures may also have more than 1 structure. I need to process all products and Structures for the parent structure. I'm having great difficulty in VB6 trying to design a function that can call itself in this way. I started off with a product class and a structure class where a structure class can comprise of itself and product class, but bringing it all together seems almost impossible. Thanks for your help. |
|
#2
|
|||
|
|||
|
williamcrawley !
I readed your problem..I try to do it with nether struct: Module1: Option Explicit 'product A Type productA y As Integer End Type 'struct A:consist of x and prduct A Type structA x As Integer pr As productA End Type 'structsA::consist of structA and product A Type structsA stA As structA proA As productA End If |
|
#3
|
|||
|
|||
|
Hi Cleverpig,
This is not quite what i require. My example isn't literal. There are 16000 structures in all and I cannot declare the all ike that. Thaks fo trying |
|
#4
|
|||
|
|||
|
OK! I guess U will make one or some universal structure to show the 16000 structure??..Or U will make one or some variable structure to show the 16000 structure??...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Design Patern Required |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|