I recieved some help with my earlier casting issue froma c# guy, he send me this:

Code:
//I don’t know what that structure is.  You should not need to create any new classes beyond what is created for you when you add the web reference.  I also don’t understand how Dim works in VB.net.  In C# it works like this…

// Declare a variable of type DataOfferType
DataOfferType dot;

// Cast the first element of the array to DataOfferType (assuming that the first element is known to be DataOfferType)

dot = (DataOfferType)offers[0];

//where offers is the OfferType array returned from the QueryOffers method.
I translated to this:

VB Code:
  1. Dim Offers() As WebReference.DataOfferType
  2. Dim dot As WebReference.DataOfferType
  3. dot = CType(Offers(0), WebReference.DataOfferType)

However I get this error:

Code:
Error     1          Class 'WebReference.DataOfferType' cannot be indexed because it has no default property.            C:\WebDev\ws_services\WebSite8\Default.aspx.vb        86         25         C:\...\WebSite8\
They tell me to add the New keyword to the dim statement of offers. When I do this, I get a new error:

Code:
Error     1          Arrays cannot be declared with 'New'.     C:\WebDev\ws_services\WebSite8\Default.aspx.vb        19         25            C:\...\WebSite8\
Without the Array these is no way to cast to the correct record. Is there anyone else there that knows vb.net that can tell me why this is not working?