...to change its list. The combos bring the names including 'reg2'. The 'town8' is not displayed because the exceptions pops and program freezes.
** Note1: that if i go and change the bindingsource2 NOT to have as datasource the bs1 (and datamember the FK constraint) but instead to have the...
Here is another trickier with regural expressions.
Imports System.Text.RegularExpressions ' Put out of class
Dim sSearch As String = "Lastn ame, Firstname"
Dim sLast As String = Regex.Matches(sSearch, "[A-Za-z]+$").Item(0).Value
Note also that if there is no search pattern, the split wont create the array
Need to rephrase. It was correct in my head but there was an output problem :)
If the search fails (so the split wont actually split anything) then the created array will have one item only - the whole "Lastname...
Hi, there as many ways.
Dim sSearch As String = "Lastname, FirstName"
Dim sLast As String = sSearch.Split(",")(1).Trim
Note: I am searching for the "," only, not including the space, just in case it is omited. If you search for ", " witch is comma+space then you can omit the...
...(if you want you can use flex++ with a c++ compiler)
When i used the flex tool, it was real fun. My bigest project was a calculator with +-*/. No () at all, but it knew how to calculate teh result correclty. With regex you see if there is any syntax error and output to the user a descriptive...
jslmvl
Yes, the .Lines[] array has the lines seperated by newline. Just checked it.
javijerome
To get the number as Integer (=32bit wide) use instead the .Length property.
Note that the 'RTB.Lines' is an array itself. Maybe you can use it too. The following will show the second line (what is...
Hello everyone,
(2005 version framework 2.0)
I use a webbrowser control and i have set the url to "c:\". This shows me the contents of C: drive but when the control gets enough width, the common blue column/sections appears at the left. This with the sections "file and folder tasks", "other...
Hi
today, after finding an enabling the tcp/ip, named pipes, shared memory and via (all of them just to be sure haha) and changing the connection string, the error that i get is that i have no access (login failed) for pc-name\guest. It uses the guest account!
Can i grant full access to the...
Hello,
I have a windows application that runs fine. Now i decided to share the application though a lan with other personal computers. I have made the output folder shared and i can access it from an other computers in the network. The application runs but it crashes when it comes to communicate...
Hello Annihilannic and Feherke,
Oh my God. I just saw a huge mistake. The "Handle the most recent (-nt) file of the $file directory" code should be after the last "done" just before the function ends
I was working very very late yesterday and i didnt spot this!
I'll see how this is goind to...
Thank you all for your answers. Hm the abbreviations can be a problem. Well maybe then instead of getting the 1st sentence, i should better get the first 100 words !
I'll think about it, what to do.
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.