|
-
May 23rd, 2013, 01:21 AM
#1
Thread Starter
Member
Re: An error occurred creating the form. See Exception.InnerException for details.
 Originally Posted by jmcilhinney
It didn't work because you didn't do it properly. .paul. specifically said:Is "https://live.xbox.com/en-GB/Profile?gamertag=" the value you want separating the parameters? Of course it isn't. Did you actually read the documentation for String.Join to see how it works? Of course you didn't. Did you even look to see what 'tags' contains after that code?
String.Join works by combining the list of values (the second argument) into a single String with each pair separated by the delimiter (the first argument). For instance, if you do this:
Code:
Dim values = {"First", "Second", "Third"}
Dim result = String.Join("||", values)
MessageBox.Show(result)
then you will see this:So, in your case, you need to specify the bit of text that you want to separate each pair of lines from the RichTextBox in the final result when you call String.Join, then you need to concatenate that result with your original URL.
didnt know what a seperator was obviously i even googled what came up was http://www.vbforums.com/showthread.p...uding-designer before posting and i googled the definition seperators also to make sure never heard of seperators in vb before now
yes i read the code lost at seperators cause ive never heard of it so i guessed and put the link
but thanks i actually get how it works
made my day too youre funny <3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|