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
Hello,
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...
Not sure...
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?
Hello,
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...
okay...
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.
Remember JOhn
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...
Yeah but
John,
I am not sure I follow what is going on. Is every line item in the list variable considered to be a STRING? If so, your code makes sense to me....
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?
I tried entering the code you gave but VS 2005 reports errors....it does not like "string". Can you please provide workable code or at least give me the function(s) to check the strings in a line item
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:
Try
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...
That did not work
I did as you suggested but I still get the same problem. Scanner is running on WINDOWS CE 4.2...any other ideas? Code is now:
Private Sub Scanner1_ScanCompleteEvent(ByVal sender As Object, ByVal e As PsionTeklogix.Barcode.ScanCompleteEventArgs)
txtlastcode.Text =...
Hello. Scanner project is going well. One last problem to solve, which I though I did before....
Private Sub Scanner1_ScanCompleteEvent(ByVal sender As Object, ByVal e As PsionTeklogix.Barcode.ScanCompleteEventArgs)
txtlastcode.Text = txtBarcode.Text
txtBarcode.Text = e.Text
StatusBar1.Text =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.