o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

[02/03] Extracting Parts of a String -

Hello,

I have a question about manipulating string in VB.NET2003.

I have a string that looks as follows:
MyString = "1st garbage blah, blah.. " & vbCrLf & _
"==============================" & vbCrLf & _
"2nd garbage blah, blah.. " & vbCrLf & _
"==============================" & vbCrLf & _
"3rd garbage blah, blah.. " & vbCrLf & _
"------------------------------" & vbCrLf & _
"4th garbage blah, blah.. " & vbCrLf & _
"------------------------------" & vbCrLf & _
"5th garbage blah, blah.. " & vbCrLf & _
"------------------------------" & vbCrLf & _
"6th garbage blah, blah.. " & vbCrLf & _
"------------------------------" & vbCrLf & _
"7th garbage blah, blah.. " & vbCrLf & _
"------------------------------" & vbCrLf & _
"8th garbage blah, blah.. " & vbCrLf


From this string, I would like to get rid of all the separator lines shown below:
"==============================" & vbCrLf & _
"------------------------------" & vbCrLf & _

And make a new string that contains the contents of MyString without those separator lines. Like this:
NewString = "1st garbage blah, blah.. " & vbCrLf & _
"2nd garbage blah, blah.. " & vbCrLf & _
"3rd garbage blah, blah.. " & vbCrLf & _
"4th garbage blah, blah.. " & vbCrLf & _
"5th garbage blah, blah.. " & vbCrLf & _
"6th garbage blah, blah.. " & vbCrLf & _
"7th garbage blah, blah.. " & vbCrLf & _
"8th garbage blah, blah.. " & vbCrLf

I've been digging String methods for a while but still could not find out how I can do this operation.
Can anyone give me an idea as to how to do this operation?

Thank you very much in advance!

 

Extracting Info from string -
Ok i have a string, which has 3 parts to it. This is how one of the strings looks. 6/17/02 9:00:00 AM - "String" this is all in one string. How do i manipulate this string so that i can place the date, time, and "String" into different variables. Also from the t


[02/03] How to use parts of a String -
This post is about VB.NET 2003. Suppose we received 300 bytes input from a serial port, which are numbered as B001, B002,..., B300. I want to save all 300 bytes and diplay only parts of the input, say, B037 to B060, and B113 to 396. Now I am using a String to buffer the input.


C# to VB.Net, help in conversion -
Could someone help me out converting this code to VB.Net? Thanks in advance... Code: protected bool IsComplete(string reply) { string[] parts = reply.Replace("\r\n", "\n").Split('\n'); if (parts.Length > 1 && ((parts[parts.Length


splitting a string up -
ok you know the function split() - well im using that to split a string into parts using the delimeter "\". my question is, how can i find out how many parts there is in a string? e.g: hello\hello\hello = 3 parts thanks.


Extracting parts of a date -
I have a database and I want to create a SQL statement within VB to extract only the dates in a particular field which have a specific month. Any ideas? Thanks in advance


anyone wanna help -
Hi, I tried today to make a my own function for opening up a html file and extracting the link urls as well as the link names buT i have come across a problem my source seems to have a huge bug in it I can't fix. It extracts links ok, but when it comes to extracting the titles it is


Output with Zones -
Hi everybody new to forum & learning VB.Net 2003 Fwork 1.1. I am trying to display a list in listbox & this is the code I have:- Dim labour, parts, partsTx, total As Double Dim fmtStr As String = "{0,-12} {1, 25} " '"25" may need to


[vb6] string minipulation help. -
I need to be able to split a string into 8 parts. Iv not dealt with this kind of string minipulation at college, can anyone explain how i would go about doing it or point me to a helpful article? The parts would need to be equal or as close to equal as possible. Regards PsYiOn


clearing certain lines of a string -
It's a multi-line string, and the commented parts (eg the parts I don't want) are started by a semicolon.. How could I erase everything between and including a ";" and the next chr(13)?


editing web parts -
hi i cant find any help on this anywhere. I am using generic web parts such as textbox, checkBox, Button eg all the standard controls to allow my users to create a custom form. How can i include a web parts editor where they can modify the text, value, size etc of these web parts? t


Creating a self-extracting exe with WinZip -
I have created an application with VB 6.0. I have included a database along with it. I have zipped it up using WinZip 8.1. I now want to use create a self extracting exe...which I have done. However, I want the application to automatically run after running the self-extracting exe.


combine two subs into one -
I have two subs on a page that split a string up and assign the parts of the string to variables. Could the two be moved into one sub? FirstLine, SecondLine, ThirdLine, HomeFirstLine, SecondLine, HomeThirdLine are string variables defined outside the subs. Code: Sub Spli


Anyone know of a free Self-extracting .exe compiler -
I'm looking for a free self-extracting .exe maker so I can package my setup files I created with package and deployment wizard. I've already put them in a zip file, but I'd also like to make a self-extracting .exe available to my users in case they don't have winzip. In order to LEGA


URGENT: Please help with XML nodes with same tag name -
Hello, Can anyone please help me? I have a new project that requires me to write up and parse an XML document that have multiple XML nodes with the same tag name. For example, I need to write the following code: Code: <Device> <! -- Parts - can have up


Affordable Self Extracting packager -
Which one you would prefer for deploying your small projects as self extracting EXEs?


Rar -
You can create a standalone unzip .exe whatever it's called self extracting or whatever with winzip...I've seen WinRar self extracting .exe's before too. How do you make them?


big big problem !!!! need help -
Dim parts() As String = txtMessageText.Split(".") str = parts(0) If str = "C" Or str = "c" Then Number = parts.Length If Number.Equals(3) = True Then fname1 = parts(1)


Build My Own PC -
I'm thinking of buying the different parts, and building myself a computer instead of buying one. A lot of people say that the big advantages of this is that you pick out what parts you want to put in and the whole thing costs much less $$$ than if you want to buy it from the store.


Self Extracting file -
I want to create an EXE just like winzip's self extracting exe, here my exe should extract files but should not store it in temp folder and should launch an application exe present in it. can anyone tell me how to go about it


Rar Archives -
Sorry for double-posting... You can create a standalone unzip .exe whatever it's called self extracting or whatever with winzip...I've seen WinRar self extracting .exe's before too. How do you make them?


web parts asp.net 2005 -
hello all, I am looking for a good tutorial on web parts and setting up customizable forms?? the end goal of the site will allow an admin to arrange a form via web parts - and save this form which all users below the admin will then use. But if any1 know a goos web parts tutor


Creating Self Extracting EXE -
Hi I want to create a self extracting exe but don't know how to do that. Please help thanx


Extracting Middle Of String -
Ok for a start i will say that this source is in a minor way involved with a yahoo string. i no some dont support yahoo coders and really im not a yahoo coder, im just doing something which involves it. Ok i no there are a few functions that can grab certain parts of a string: InSt


Reading numbers from a text file -
I'm trying to read some numbers from a text file - its for an earthquake program. I can get the data off the website with it being separated by commas. But I don't really understand the code above so I haven't been able to modify it to suit my purposes. Heres a sample of the info I ge


Help! Extracting letters -
Hi, I wish to extract the first two letters of a waiter's name in my program and display on another form. I have extracted the name before by extracting it from a combo box like this Form2.lblWaiter.Caption = cmbUsername and then been extracting it to labels. What I'd like to


extracting a single char from string -
im writing a program that encrypts a message that a user enters in. I want to extract each char from a string and encrypt it. Then i want to combine all the chars back into a new string. Is there a way i can specify the position of a string to get that character. any help would be


self extracting exe -
How can I create a self extracting exe for my application? I tried with the Package and Deplyment wizard, but it stops saying some "signature" is missing. Pls help me out THank you


Creating Self Extracting EXE files -
I am working on a project where I want to take a bunch of files and add them to a zip or rar archive that is self extracting. Does anyone have any suggestions as to where I could find some info on doing this. Thanks


Extracting IP from UDP -
Hi all, Just a quick question as to how i would go about extracting the IP address of the sender of a UDP packet. I have various IP's sending UDP messages and i need to know which message comes from which IP address. Thanks Chris


grabbing certain parts of a string -
I haven't been able to think of a good way to do this, so any advice would be appreciated. I have a text file that I want some data from. All the info I need is on the same line so I have a string that I obtained using StreamReader.ReadLine(), now I need to get certain parts of it an


exact Email extract from html -
hi guys, is there any shorter way or should i say more effective and easy way to only extracting the correct email address from html files??? correct email extracted: wmusic[PAM]@blueyonder.co.uk instead of extracting the below string mailto:wmusic[PAM]@blueyonder.co.uk%


extracting digits -
is there anyway of extracting digits from a number? For example, if i had an integer of 3345, how could i take out the first and second digit and then use them in a calculation? Thanks


Two questions.... -
First off, is there anyway to blt an image that has translucent parts, solid parts, transparent parts, i'm thinking a grayscale alpha channel then use that to blt it. Can anyone tell me how? On a totally unrelated matter, How can I call a DLL from within VB? It's a dll someone made


making a string using array elements -
Hi, I have an array of parts : -myarray(RecordNumber,3) 'RecordNumber is a integer indicating how many items selected and hence entered in array I want to make a string using all the values that are in my array. so that I can place this string as the Body of an email. For e


Extracting a string betweeen two strings -
i have a string like the following welcome to the world of computer I have to extract the string between the word to and of The output should be the world Please help me of how to do this


getting a vb6 program to run on w95 without a installation -
hiya all, I'm making an email program for a small company that will install a catalogue on the person’s computer when run. I have the catalogue zipped in a self-extracting zip file that will install the catalogue in the right directory, then I make the vb6 program run that self


how to creat moveable parts...like puzzle parts -
my program supose to work like puzzle... and i wanna know how to make square and moveable parts... thank you...please try to help this is the last part in my project.. and if you are thinking its a puzzel ..no its not =]


Extracting Large Resources -
I have read that the LoadResData and similar functions can only extract relatively small resources (64K I think?). Can anyone tell me a way of extracting much bigger resources?


Extracting data from MSFlexGrids to Word -
Good Morning, Please help a beginner. I have successfully written a program that fills several MSFlexGrids with comparative string information. Now I need help extracting the information in the cells to a Report. I've tried Write and Print Statements to a text file, and then


To cut movie parts using VB -
Can we cut movie into different parts through visual basic and again rejoin selected parts to make a full movie