John, You're falling foul of some .Net semantics here.
You first set testArray to a new instance of UniDynArray. You then set testArray to a string (presumably the type of your GetArg). This *replaces* the reference to the UniDynArray. What you obviously intended to do was to to set the *contents* of the UniDynArray referenced through testArray to the string. From the .net perspective this is not the same thing at all... it's an easy mistake to make, especially since on the COM model the DynamicArray had a default property (StringValue) so when you state in VB MyArray = MyString this actually assigned MyArray.StringValue = MyString (the difference in VB between using a SET and an assign). VB .Net doesn't have that semantic distinction. Annoyingly, the UO.net version of the UniDynarray also has a StringValue property, but for some reason IBM have made it read-only. So to set the content of your testArray use either the constructor: testArray = New UniDynArray(objOnHand.GetArg(1)) or use the Replace method to set the content. Brian > >I am having a problem with Uniobjects code working in vb.net >The code was working just fine in VB 6.0 > >The code is as follows: > >Dim Partx As String >testArray = New UNIOBJECTSLib.UniDynArray >testArray = objOnHand.GetArg(1) > >Partx = testArray.Extract(1,1,0) >Partx = testArray.Value(1,1) > >These last two statements both cause the following error: >MissingMemberException was unhandled >Public member 'Extract' on type 'String' not found > > >The testArray variable is set properly with Multi Valued >Information. >However, for some reason it doesn't like the 'Value' or >'Extract' > >Any help would be greatly appreciated. > >TIA, >John > >--- John Castilletti <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I have issued this to IBM Techsupport but they said that I >> needed to go through Epicor which is our ERP Software >> provider. >> >> Epicor did not provide with the answers that I was looking >> for. >> Attached is what I submitted to IBM TechConnect. >> >> TIA, for any help on this Subject. >> >> John >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection >> around >> http://mail.yahoo.com >> >> [demime 1.01d removed an attachment of type application/msword >> which had a name of Doc5.doc] >> ------- >> u2-users mailing list >> [email protected] >> To unsubscribe please visit http://listserver.u2ug.org/ >> > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com >------- >u2-users mailing list >[email protected] >To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
