Here, I want to replace two-line digits in bold(0110 0001) with a different sequence as the program scans the text line by line. But two things complicate the task:
1. the comma lines should be ignored, but
2. they also should stay intact after changing the digits.
what im trying to do and what i have done so far is probably a little backwards not sure sure how to id it any other way.when the user generates an error because a particular file doenst exist ive got my dialoge box to generate an .txt file for each file it errors on, so that the administrator can check and update missing files as an when - shouldnt be many files missing in the first place, should just be new product ranges or item just launched.what im stuck on is:
1. is there a better way
2. how do i open a .txt file and add the extra lines to it, so i re use the file but keeping the previous data.
I just learned some basics of multi threading in VB.net recently as I came across processing a large List of records and inserting them into SQL database one by one.
I have code look like this:
Private Sub btnLoadNow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoadNow.Click
Dim autoLoad1 As New Thread(AddressOf AutoLoad) autoLoad1.Start()
[CODE]...
Itemlists is a global lists i retrieved from database, everything looks fine to me but when i run this program, I found that the threads are inserting one records 9 times into the database(I have 9 threads in total), which makes me think that maybe i need to specifically assign 1/9 of a list to each thread? Is there another way to do it which doesn't require the splitting of the list, if not , how do i split it then assign?
Im a college student and this is my first programming class, i am having extremely diffcult time with arrays and sequential file processing. Im not asking for the whole program, just something to get me started and hints along as i progress with it. Please help me get started on my program, its due in 2 days.
Here are the requirements....
1. The program must input any number of individual�s last and first names using two separate textboxes. 2. The array of names must be sorted by the last name using a bubble sort. You must code the sort. 3. The program must be able to recall the names from the file and add to the existing list of names so that more names can be added to, sorted, and written back to the file in sorted order. 4. Sort in ascending order: A to Z 5. All names must be displayed in a listbox in sorted order when the user wishes to see them. 6. In the listbox the last and first names must be separated by a comma and a space. Example: Smith, Mary 7. The user must be able to search for a name in the array, using the binary search algorithm. You must code the search. 8. Do not use module-level variables. Instead you may choose to use Static. 9. The program must be designed using Visual Basic 2008
how to count the lines in textbox1.text (with multiplelines). I don't need to count each character. I only need to count each line from top to bottom in textbox1.text (multiplelines) and I will use Label1 to display the numbers.
I have written a simple script to get a bunch of lines from a text file (they will be filenames eventually) which are split by new lines and puts each one into an array..
Dim ary() As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If My.Computer.FileSystem.FileExists("C:MenuFiles.txt") Then
[code]....
The only thing I can do for now is either use the substring function to remove the first character from all array values after 0 but I don't like that because it's messy and what if the split "works" as I want it to one one of the lines and knocks of the first character when I don't want it to.
below are a few lines from my text file(10929 lines)I need to read each line and insert into MS Access. each line is a column in my table and the record changes on every 8th line or to be more specific(on every 8th line you will see a number [1,2,3,4,5,6,7,8,9.....] this is where another record starts,
I am trying to make a script to spit command lines to a bat file to compress a bunch of files singly and then delete the original ones. I am sure that is easy to most of you, but I living a ____ trying to do this. A have a file list like this one belo, which was created with a command -- Dir /b /s /a-D N: > filelist.txt
At the moment, my project has a method do_job(jobid,userid)
This method take a minute or two, and then redirects to another page. This has been rewritten so that it now runs in the background and redirects to another page whilst the thread which do_job is on continues. - This works fine. In a button_click event in a default.aspx page :
Dim d as New do_job_delegate(AddressOf do_job) d.BeginInvoke(jobid,userid, New AsyncCallback(AddressOf Callback),d) Response.redirect("results.aspx")
[Code]....
So what i want to happen is - the longest time that do_job takes is the longest time of the longest job (30 seconds), rather than - 30 seconds x number of jobs = time it takes at the moment.
As i'm already using a delegate to detact the process from the ui, can anyone provide any advice/best practice on how i should rearrange my do_job method so that it can handle concurrent tasks to further boost the overall speed.
If vb application (windows form app) is calling a store procedure and it takes 5-10 mins to SP to finish and meanwhile the application is (forced to) close,
what will happend at the SQL side?
Will the proc completely run even though the app is not running anymore?
I want to run my vb.net 2003 application from command line and accepting only one parameter(argument)....... BUT it should run without GUI, only a function from my code would get run in background..
I am looking for a solution to implement Credit Card processing to a POS system I have written. I have been coding VB for about 7 years but never had a need to process credit cards.
I haven't seen a related thread (yet)I have a VB windows application that uses a datagrid to display a text column and a checkbox column. Only one row in the display can have a checkbox entry = true. If a checkbox is selected, the app is to search the rows and all other checkbox entries are to be set to false.My event handler is: Private Sub dgMember_CellContentClick(ByVal sender As System.Object, ByVal e As ystem.Windows.Forms.DataGridViewCellEventArgs) Handles dgMember.CellValueChangedI first had to have this handler code check a flag and exit if true (when initializing the display) because it was called for each row during initialization.
I have a form with several buttons on it.When a button is pressed,it will execute some remoting proxy method on the server. There is some delay in the process before there is a result returned from server .Currently,I tried to disable the button in the _Click event, hoping that a 2nd, 3rd and the following clicks would not be registered.Unfortunately, those input from the mouse clicks were queued by Windows.
So once the _Click event has finished running, it will immediately get executed again due to the earlier clicking.I tried to create a form (Notice) to display some status message, hoping that clicks won't be registered on the button. Despite setting the form to maximize and on top of the caller form, the clicks still get registered.Then I thought of using .ShowDialog(). Unfortunately, it halts the processing until I close the form. So I did something more complicated by passing in the method into Notice form, so that it would execute the _Click method via an address pointer.Unfortunately, after all these coding. The buttons still get registered with the mouse clicks.So now, is there any way to overcome this clicking queue that Windows registered?
i have 10 checkboxes...i want a short way to check if checkbox1.checked=true and check box3.checked=true.... blah blah blah and so on to do codes...i was using long typeing code like:
if checkbox1.checked=true and checkbox2.checked=false and checkbox3.checked=true and checkbox4.checked=true and checkbox5.checked=true and checkbox1.checked=true.....etc then msgbox"done" end if
i am using vb.net to program and process some files.I pick files from one folder process them and once i process them successfully i should store them in a different folder. when i do fi.move(destination folder) i get an error message saying "THIS FILE IS USED BY ANOTHER PROCESS" below is my code
I'm thinking of making use of online technology to do some validation and processing for my program but I'm unsure of its feasibility. I need to create a program whereby the client can retrieve the data/settings from website say http:[url].... .Another example would be allowing the program to run until end of December by making use of online time service to check the date so that user can't change any settings from their computer.
While discussing about retrieving the data either through html static site or webservices, another thing I'm concern is transmitting the data from client side to my side.I wonder what is the best and free way to do that? As I'm thinking of using a free smtp gmail to transmit data but I'm worried about the security issue as credentials would be stored inside the program and also firewall might block data from sending out. Another choice would be sending a POST request, but I do not have any server or is there any free server that allows user to post some small bytes of data?
I am sort of stuck on this what I want to do is when you click a button it process's a command in cmd in the background(I dont want a CMD window to appear) and then if the cmd command has finished it shows a message box like Msgbox("Command Successful")
i does anyone have any examples of using .net to do zonal ocr form processing (I want to extract data from a scanned image based on it's location on the scan and save it), i know there are thrid parties out there for this type of thing, but I'd rather do it myself, does .net natively have the abliity to let me do this?
The following is a program that lets users store business logic for later retrieval by other users.
I am trying to run multiple logical statements pulled from sql server database. one statement may be dependent on another one. I've been compliling the code in a wrapper and In-Memory set to True. I ran 18 logical statements in a loop and it took approx 3 seconds to run. These were simple one line statements containging math and/or If Then's.
Any other methods available out there. please no 3rd party plug-ins.