For the record I have tested Application.Exit, this.close, and this.dispose so I know what they do and am not asking the group to tell me what happens. I am looking for a more conceptual explanation (ie what is happening behind the scenes) to some of the questions I am asking.
Should a coder...
Help With Regular Expression
I have to create a regular expression with the following conditions:
1) Must be composed of words
2) Words must be composed STRICTLY of letters (no numbers or other characters allowed)
2)Must be composed of a minimum of two words and the first two words...
I am afraid I do not understand COMPLETELY the logic of what is going on:
Dim regTwoPlusWords As String = "^([^\d\s]+ [^\d\s]+)+$"
Why can't we just write ([^\d\s]+ [^\d\s]+)
Is it because that would just mean we can have just TWO WORDS?
I know regular expressions can be created in vb.net but the resources are scare on the net and I cannot find examples. I need to create a regular expression that ensures that at least two words have been entered and the words can just have letters in them. Can someone tell me how to do...
I think we might be getting confuzed by semantincs.
I assume a list variable will just have line after line of code much like the original text file. So when you say the "entire string is loaded" you mean the entire line right? If that is the case, I think I am ok...please clarify.
Every one of my line items in the list variable is not composed of one component but many, some of them are separated by spaces. Hence that is why I asked you is the searchstring in the below one line item:
For Each searchString As String In infoList
If searchString = e.Text...
OKay now I have this problem...
Okay, that code works but now I have to do the following: I need to input the entire LINE in which that string is found and perform the following. I to read info from that line from one fixed position to another. How can I do this?
Okay this makes sense but each line item in the variable of type list will look like this:
XXX XXXX XXXX XXXXXXXXXXXX
The scanned item will be in the last three positions of the last string of X's. Will your code still work?
I have inputted all information in a text file into a list:
sourceFile = "\My Documents\TOPR1.TXT"
Dim objReader AsNew IO.StreamReader(sourcefile)
'Peek returns a value of -1 when there are no more...
'...incoming characters thereby signifying EOF
'Add all items in TOPR1.TXT to a list...