Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8942541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:32:25+00:00 2026-06-15T11:32:25+00:00

I have a string which I formatted and then I split it using |

  • 0

I have a string which I formatted and then I split it using | character. Then the data between each |I am inserting into a list each with a unique index. Now I am trying to join two elements in that list so that they can be in one index.

Example

`List FruitSalad 

fruit.add("Apple")
fruit.add("Orange")
fruit.add("Tomatoes")
fruit.add("bananas")
fruit.add("Cucumber")

TextBox1.Text = fruit(0)
TextBox2.Text = fruit(1)
TextBox3.Text = fruit(3)

Typically Apple would have index(0) and Orange and bananas would have the index(1) and index(2) respectively. The thing is I want to join or merge index(2) with index(1) so that both elements would be merged in one index. e.g. index(1) has Apple and Orange.

How could I write it in terms of assigning it to a TextBox.Text, what would be the correct format for TextBox.Text = fruit(?). I tried fruit.Join(2)(1) and String.Join(result(2)(1).ToArray) but that didn’t work. Any suggestions? Regards.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:32:26+00:00Added an answer on June 15, 2026 at 11:32 am

    Why not concatenate the two

    TextBox1.Text = fruits(1) & " and " & fruits(2)
    

    or

    TextBox1.Text = String.Format("{0} and {1}", fruits(1), fruits(2))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a formatted string from a log file, which looks like: >>> a=test
So I have a flashobject which I need to pass a formatted DateTime string
I have a nested drag and drop list which return json formattet string. I
I have a returned JSON string which I have parsed and put through into
I am trying to create an XML file using string data. (Which is itself
I have a string which is of about 1mb size. The requirement is to
I have a string which is in the following format, When there is a
I have a string which varies everytime it is input as it is a
I have a string which is a representation of a clojure map. Is there
I have a string which typically is in the format : 0xFF . I'll

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.