Re: I can't extract string data from a type object
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 07/20/04
- Next message: Mohamoss: "RE: datagrid does not show scroll bars"
- Previous message: philippe sillon: "Re: Strategy Pattern problem (or casting problem)"
- In reply to: Chris: "I can't extract string data from a type object"
- Next in thread: Chris: "Re: I can't extract string data from a type object"
- Reply: Chris: "Re: I can't extract string data from a type object"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Jul 2004 14:57:45 +0100
Chris <anonymous@discussions.microsoft.com> wrote:
> I am calling a COM object that returns a type Object and
> it contains two strings but I can't get them out. Here is
> the command:
>
> object ParamNameObj= localxPCCOMOBJ.xPCTarget.GetParamName
> (1);
>
> ParamNameObj shows up as a System.Array in the watch window
> with the following elements.
> -[0] datastr1 as string
> -[1] datastr2 as string
>
> But I can't get the data. I've tried .ToString object
> method and it gives me "System.Array" I've tried to
> reference the object as an array but it tells me that the
> object is variable and not a method.
Could you show *how* you've tried to use it as an array?
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: Mohamoss: "RE: datagrid does not show scroll bars"
- Previous message: philippe sillon: "Re: Strategy Pattern problem (or casting problem)"
- In reply to: Chris: "I can't extract string data from a type object"
- Next in thread: Chris: "Re: I can't extract string data from a type object"
- Reply: Chris: "Re: I can't extract string data from a type object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|