Kindly enlighten me Programming Software Development by renzlo … he do that? Can someone tell me? Thanks in advance. -renzlo [Help] I can't figure it out Programming Software Development by renzlo Hi all, Please see attached for my query. Hope someone can help me. Thanks in advance. -renzlo Re: [Help] I can't figure it out Programming Software Development by renzlo Hi Everyone, Can anyone help me with this, adam provided the logic but I can't get it right. Can someone provide me a sample? I just needed this one. Sincerely yours, renzlo Auto-populate textbox question Programming Software Development by renzlo …() End If End Sub End Class[/CODE] Thanks in advance. -renzlo Shed some light Programming Software Development by renzlo Hi All, I want to build an application that will navigate a website that contains user login form and automatically logged to it and retrieve data from it's table. Is this possible? What would be my best approach here. Thanks in advance. -renzlo Another SQL Query Question Programming Software Development by renzlo … jobname? How can I avoid that? Thanks in advance. Sincerely, renzlo Validation of Date Values Programming Software Development by renzlo Hi, All, I need to check if the date values is valid this current year, for example, February 29, 2012, I have used Isdate function but it says "True", is there any other way to do this? Thanks in advance. renzlo Capture user's acivity Programming Software Development by renzlo … program is to monitor the employees activities and idle times. -renzlo Merge two CSV files, column wise Programming Software Development by renzlo …;Data E","Data F" Thanks in advance. -renzlo Need your inputs for Mailer Programming Software Development by renzlo …. You help will be much appreciated. Thanks in advance. Sincerely, renzlo Re: Newbie question here Programming Software Development by Unhnd_Exception [QUOTE=renzlo;1679463]Hi Guys,How's your day?[/QUOTE] I'd rather be fishing. Re: How do I fix my code? Programming Software Development by renzlo … file for you to try. Thanks for all the help. -renzlo Re: A little help here Programming Software Development by renzlo … the contents to excel without requiring excel to be installed. - renzlo Re: how to save the selecteditem not whole listbox item ? Programming Software Development by M.Waqas Aslam where we type post there is a link mark this thread solved , click it thread is solved , and please @renzlo that i am just come and got a solved thread , i am just telling him. Regards Re: Kindly enlighten me Programming Software Development by chriswelborn can't download attachments... Re: [Help] I can't figure it out Programming Software Development by adam_k Read the first line (verify type 002 or length) and get A into a var. Read the next lines, incrementing a counter, until you get to a line with type 002 or length of header line (don't increment your counter for this line). compare your counter to the A value you've read. Reset the counter and set A again from the line you've just read and repeat… Re: [Help] I can't figure it out Programming Software Development by renzlo hi adam_k, thanks for the logic, can you give me some sample? many thanks. Re: [Help] I can't figure it out Programming Software Development by renzlo Here's my entire code now but it doesn't match, what should be my fix to this problem? [CODE]Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim openFile As New OpenFileDialog openFile.Filter = "Text File|*.txt"… Re: [Help] I can't figure it out Programming Software Development by renzlo anyone guys? sorry for being desperate, I really need this. Re: [Help] I can't figure it out Programming Software Development by codeorder I'll try to help, though you have to provide some defined.details, one thing at a time. Re: [Help] I can't figure it out Programming Software Development by adam_k I believe that you've messed the order here: [CODE]comp1 = basa.Substring(12, 5) MessageBox.Show(comp1.ToString) MessageBox.Show(comp2.ToString) comp2 = 0 [/CODE] as you are setting comp1 for the new header and then compare it to the number of lines read already (for the previous header). … Re: [Help] I can't figure it out Programming Software Development by renzlo [QUOTE=codeorder;1747490]I'll try to help, though you have to provide some defined.details, one thing at a time.[/QUOTE] Hi codeorder, Here's the scenario: I have a text file with a contents like this: [CODE]00249038201500005 091 003490382015160090720000001The double Vag Initiative… Re: [Help] I can't figure it out Programming Software Development by renzlo [QUOTE=adam_k;1747616]I believe that you've messed the order here: [CODE]comp1 = basa.Substring(12, 5) MessageBox.Show(comp1.ToString) MessageBox.Show(comp2.ToString) comp2 = 0 [/CODE] as you are setting comp1 for the new header and then compare it to the number of lines read already (for the … Re: [Help] I can't figure it out Programming Software Development by codeorder See if this helps. [CODE]Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click 'MsgBox("File is valid = " & validateFile(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\test.txt"))'// FOR.TESTING. With New OpenFileDialog… Re: [Help] I can't figure it out Programming Software Development by codeorder Just overlooked the post you made and am wondering. Do you want to check lines that start w/"002", get the total from end of line, and count "the following" lines until it validates against the total from end of line? Then go to next line w/"002" and validate again? Re: [Help] I can't figure it out Programming Software Development by renzlo [QUOTE=codeorder;1747918]Do you want to check lines that start w/"002", get the total from end of line, and count "the following" lines until it validates against the total from end of line? Then go to next line w/"002" and validate again?[/QUOTE] Yes, this is exactly what I wanted. Thanks codeorder. Re: [Help] I can't figure it out Programming Software Development by codeorder This should take care of the issue. [CODE] Private arFileLines(), sToLookFOr As String Private Function isFileValid(ByVal selCoolFile As String) As Boolean arFileLines = IO.File.ReadAllLines(selCoolFile) '// read file into array. sToLookFOr = "002" For i As Integer = 0 To arFileLines.Length - 1 '// loop thru… Re: [Help] I can't figure it out Programming Software Development by renzlo [QUOTE=codeorder;1748104]This should take care of the issue. [CODE] Private arFileLines(), sToLookFOr As String Private Function isFileValid(ByVal selCoolFile As String) As Boolean arFileLines = IO.File.ReadAllLines(selCoolFile) '// read file into array. sToLookFOr = "002" For i As Integer = 0 To … Re: [Help] I can't figure it out Programming Software Development by codeorder Replace line.10 with this. [CODE]If arFileLines(i2).StartsWith(sToLookFOr) Then msgbox("this line is invalid: " & i2.tostring) Return False '// if not done w/the total of lines Then Return False. End If[/CODE] += Glad I could help.:) Re: [Help] I can't figure it out Programming Software Development by renzlo thanks codeorder, this is now fixed.