Here is the problem: I have 6 numbers in an array(dim ascore(5)) and I want to find who is the bigger one(I would like the number of the variable in the array to be returned, like ascore(2) or ascore(5)...). My mind is stuck!
I am working on my work here and I am not sure how to proceed. I am to write a program that has 3 labels with names in one and a number in the other then the program is supposed to output who is in first second and then third. I am not sure if I am to use an if statement or a case statement. I assumed a case but it was a lot of code that didnt work, I had if time 1 was > than time 2 then a second case if time 1 > time 3 and do that all over again if time 2 > time 1 and so on.
I'm trying to compare Office version numbers in vb.NET How can I determine if: 12.0.64 is greater or less than say 12.0.62 or 14.0.4762 It seems the fact that there is 2 decimals, vb doesn't like it.
My collegeue and I have been searching on the net a hell of a lot for a problem he is facing and we so far have been unable to find a resolution.He has an Access Database where one of the columns is of Date format. This date is in UK style (as defined by the Operatins System)
In his application there is a datetime picker which the user picks from he then wants to select * from the access database where the dates match but because the DateTime Picker is giving a US Format date (i.e MM/dd/yyyy) and in the database its UK (i.e: dd/MM/yyyy) its not finding a match and returning no records.
I got a form and a checkbox with default names. In the form1 load event, I need to check the binary data of a registry key. If data is 00 00 00 00 the checkbox will display a check mark If data is 1b 00 00 00 the checkbox will shows nothing
Here is my code Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim b() As Byte = {0, 0, 0, 0} Dim a() As Byte = My.Computer.Registry.GetValue("HKEY_CURRENT_USERSoftware", "Test",String.Empty) If a Is b Then CheckBox1.Checked = True End If
When i save data in my xml file i save a bunch of cities that the user has selected, i then proceed to load the data back into the program and populate the check fields besides the city
vb.net '// Loop through each one and re-check them For Each cityToCheck As Xml.XmlNode In nodeList
[code]....
This string stringSplit(0).tostring returns the city name say "Glasgow" i was trying to loop the listview that stores the cities, if they match then put a check mark, this is where the cities are located: (formAddCities.listViewCities.(FIRST ITEM IN COLUMN WHICH IS CITY NAME) the very first column in the listview, but i can't seem to get the right syntax?
Have been obsessed with DataTypes recently and would like some thoughts, etc. on the following: What's going on is when the BindingSource.PositionChanged Event fires, I capture an Integer relating to another tables Primary Key and then filter that DataTable to select the matching record.
So the focus of the question lies in the first 3 lines in the event. First example creates 2 objects, 2 lines of code. Second example does it all with one line... not sure if it creates only one object or not, seemingly not.. can't tell for sure. Which is "better"? Am I really approaching this from the right angle? Beside y'all here on this forum and Google, I'm self-taught and looking for some validation.
I am looking to compare lines within a .csv file. I want to start at the bottom line and compare values within it to those in the line above and then repeat the process, ie. the second bottom line to the third bottom line and so on.The code used to compare straight out variables I can handle, the difficultly for me lies in identifying particular lines and fields within a text file.If someone would be kind enough to provide the code for this, I have googled it but it's clearly beyond my ability.
I'm reading a text doc from my hard drive. I'm reading it via a stream reader.
On a button click i'm reading it again, because the contence of the text doc may have been updated, what I want to do is show in one textbox the actual file and in another one just what is new. How can I compare them?
I'm pretty new to VB.NET and I'm looking for a comparison to do this:
For Each c As Control In Me.Controls If TypeOf (c) Is ComboBox Then If c in (combo1, combo2, combo3, combo4) then ' do some crazy stuff else 'do other things
Is this the correct way to get a datetime value using a sql datareader: existingETA = existproformaReader.GetDateTime(0) I want to assign the value to a date variable and compare it to another date variable.
vb Imports System.IOImports System.NetImports System.Text Public Class TEST Public Shared DOWNLOAD_LINK As String Public Shared Downuri As String Public Shared Sub Main() Dim URI As String URI = "http://MYWEBSITE.COM/test.html" Dim wr As
[code]....
As you can see this class get the .html text and copy to one .txt file. Then it reads the .txt file. Now I just need to compare the string it read with one string from another form... How do I do it? Do I need to change the code?
I want to write a program using vb.net tht compares the name of a document on my desktop to the name of the document on the server. If they're the same then I'd like to retrieve it and have it replace the file I already have.
How can i do this? Does this mean that i have to write a web application cuz i hope not. I dont no anything about those. I am using that server for storage purposes only so i assumed that i didnt need a database for the name of the document.
So, how can i do this? Is there an existing class/package in vb.net that does something like this?
I would like to read a txt file and then check if the same name exist within its sublevel.If found within the sublevel, delte those line.sample txt file:
4272840.ASM M97 BLOC DE CLIMATISATION DENZO VERSION A/C AUTOMATIQUE AUTOMATIC A/C VERSION AIR CONDITIONING BLOCK DENZO F9206101 3786687.ASM M1 -- BLOC CLIM AUTO
I would like to compare the month of a date with datetime.now, when the datetime.now reaches a month beyond the given date to play a sound. I am novice to this.
I am helping a friend convert files from floppy to CD. The files are in WordPerfect for DOS (8.3)format. she named the files as follows: name.month eg; Baker.jan. if there were more than 1 "Baker" files in the same month she named them baker1.jan,Baker2.jan etc... She then copied them to floppies and when one got full she started another. The problem is I have multiple instances of the same filename on different disks so when I copy to my HD windows asks if I want to overwrite the files. I have been writing the names down and renaming them manually. Is there any way to automate this process? I would need to perform the following:
1. Check if floppy filename exists on HD already 2. if it doesn't, copy to HD 3. if it does, is it the same file or different file with the same name (file size has been a good indicator so far) 4.If it's the same =>ignore and go to next file on disk 5. if different, rename then copy to HD then go to next file 6. repeat until all files have been copied
I have 300+ disks to do this with and it is very time consuming.
with vb.net + access 2007 i am having a database with 2 tables & 4.85 lak records
the task:i want to Loop through all the records & compare the Current record with the previous record & edit the database with some changes as per logic i have written a procedure but the process is very slow approximately it is taking 1 to 1.5 second to check & edit a record
here is my code
vb.net Private Function ISCasuaLty(ByVal CAStype As String) As Boolean 'this procedure checks whether the duty type is of Casualty'& returns true if the casualty is "Y" else "N" FALSE If CAStype = "" OrElse CAStype Is Nothing OrElse CAStype = " " Then Return True ' there
this time im looking for a faster-than-fast way to read binary files into a string/buffer/whatever, like Delphi's BlockRead does.i need this for an application that checks a list of folders/files and looks for multiple files, and handles them according to specific criteria.
I know there are standard solutions for this, like DuplicateFileRemover (gotta love that sheep! ), but i need something custommade, coz i want to handle the duplicates automatically too, and im talking about GigaBytes of data i have to periodically clean out this way..So far, the algorithm i use to determine if 2 files are equal is this:
I started with not knowing anything and I have built 2 programs over the last month and a half and have learned valuable information from the help of this board. I have 1 last hurdle before I am done and I am hoping to get another tip for this. First of all let me start by explaining what I have done.
I am attempting to loop through each record in dtlist and compare it to each record in dtsold get the distances and retrive the max value I get an error on the line:
they need to make some compare version between host version and client version.. and each 1 version different will download the file to the client..[URL]..with both example, how can i make a program in VB.NET just like i said just now?
I'm willing to compare a textfile (whatever) which contains a few lines of text. After the comparison it should download and replace the "changed" folder/file. E.g.
I have six textboxes, and upon button press it randomly generates six numbers, one in eact text box e.g. [43] [85] [93] [1] [0] [17]..i create another six textboxes and at the same time allocate these numbers in ascending/descending numbers.I am not looking for any codes whatsoever, as i love the challenge of VB.Net.