Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Array Type Question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
RickA  
View profile  
 More options May 15 2008, 9:01 am
From: RickA <eranth...@gmail.com>
Date: Thu, 15 May 2008 06:01:12 -0700 (PDT)
Local: Thurs, May 15 2008 9:01 am
Subject: Array Type Question
I have an array of objects where all the objects are strings.  What
are some options for converting this to an array of strings?  I know
that you cannot simply apply a cast.

Thanks.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cedric Vivier  
View profile  
 More options May 15 2008, 9:07 am
From: "Cedric Vivier" <cedr...@neonux.com>
Date: Thu, 15 May 2008 15:07:48 +0200
Local: Thurs, May 15 2008 9:07 am
Subject: Re: Array Type Question

Hi,

Array.ConvertAll is probably what you want :
http://msdn.microsoft.com/en-us/library/exc45z53.aspx

Regards


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rodrigo B. de Oliveira  
View profile  
 More options May 15 2008, 9:08 am
From: "Rodrigo B. de Oliveira" <rodrigobam...@gmail.com>
Date: Thu, 15 May 2008 10:08:05 -0300
Local: Thurs, May 15 2008 9:08 am
Subject: Re: Array Type Question

On Thu, May 15, 2008 at 10:01 AM, RickA <eranth...@gmail.com> wrote:

> I have an array of objects where all the objects are strings.  What
> are some options for converting this to an array of strings?  I know
> that you cannot simply apply a cast.

strings = array(o as string for o in objectArray)

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rodrigo B. de Oliveira  
View profile  
 More options May 15 2008, 9:26 am
From: "Rodrigo B. de Oliveira" <rodrigobam...@gmail.com>
Date: Thu, 15 May 2008 10:26:42 -0300
Local: Thurs, May 15 2008 9:26 am
Subject: Re: Array Type Question
yes, Array.ConvertAll most probably has much better time/space
behavior than what I proposed before.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avish  
View profile  
 More options May 15 2008, 2:11 pm
From: Avish <some.av...@gmail.com>
Date: Thu, 15 May 2008 11:11:04 -0700 (PDT)
Local: Thurs, May 15 2008 2:11 pm
Subject: Re: Array Type Question
Note that currently, you'll have to explicitly state the generic
parameters: Array.ConvertAll[of object, string]

On May 15, 4:26 pm, "Rodrigo B. de Oliveira" <rodrigobam...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google