For each Loop Help

  • Thread starter Thread starter old_School
  • Start date Start date
O

old_School

Guest
I'm trying to dig into this class and try to build a massive string to store the data. Trying to figure out the best way to split this data up.



class:

Public Class Image
Public Property page As Integer
Public Property url As String
End Class

Public Class Item
Public Property sku As String
Public Property quantity As Integer
Public Property substrate As String
Public Property diecut_shape As String
Public Property images As Image()
End Class

Public Class Order
Public Property order_id As String
Public Property shipping_first_name As String
Public Property shipping_last_name As String
Public Property shipping_address1 As String
Public Property shipping_address2 As String
Public Property shipping_city As String
Public Property shipping_state As String
Public Property shipping_zip As String
Public Property shipping_country As String
Public Property shipping_email As String
Public Property shipping_phone As String
Public Property shipping_method As String
Public Property items As Item()
End Class



I need to split the item and then I need to split the image.


Ive tried the following:


For Each item As _Order.Item In _Order
For Each img As item.image In item

Next
Next


but I get syntax errors. So just need a example on how to dig down into this object.

Continue reading...
 

Similar threads

Back
Top