4,901 Posted Topics
Re: Just changing the name doesn't make it better. There is a saying that goes "just because everything is different doesn't mean anything has changed." | |
| |
Re: Let me see if I understand what you want. for each line in a.txt pick two random numbers (lo,hi) in the range 0 to b.txt.count - 1 output line for i = lo to hi output i next output newline next If that is what you want then it should … | |
Re: If you are only allowed P, R or N then I suggest you use a combobox. Why allow the user to bang on invalid keys? Just show him/her the valid choices. | |
Re: If you are not an extremely lazy person who expects others to do their research for them you can start with google. | |
Re: Broken link. Try [here](http://en.wikipedia.org/wiki/ProtonMail). | |
Re: The same dream vacation I take every year - spending all summer at the cottage on Shebandowan Lake. | |
Re: Do you get anything on first powering up (display dies after Windows starts to load) or is it all dead all the time? | |
I just got my new laptop (after toasting my 2008 model with a glass of water on the keyboard). It's a Dell Inspiron 5748. I was excited to see it came with a USB 3.0 port (plus two USB 2.0 ports). The excitement vanished, however, when I tried my first … | |
Re: I can't test this out because I don't have anything older than vb.net 2010 but I don't believe you need the **Set** keyword. Try just dbgridvar = Form1.Datagrid1 Are you getting an error message? | |
Re: When you do an INSERT you must supply values. For example INSERT INTO mytable (fld1, fld2, fld3) VALUES(fldvalue1, fldvalue2, fldvalue3) You must supply data for all NOT NULL fields. I suspect what you are trying to do is an UPDATE which would look like UPDATE mytable SET fld1 = fld1value, … | |
Re: Aside from the price gouging (which they have done before), they have also 1. Denied responsibility for drivers by claiming they are contractors, not employees 1. Interfered with an attempt by Lyft to attract investors 1. Threatened to smear reporters 1. Called in fake rides to tie up drivers from … | |
Re: Usually the **Run As Administrator** comes up when your program is trying to write to a protected location, for example if you are writing to a file in the folder where the application is installed. | |
Re: Free OS - Linux. Free game - too many on the internet to enumerate here. Try Google. | |
Re: I agree with pritaeas. In order to help avoid gaming the OP should pick which answers, if any, were helpful. I have occasionally posted in a thread, not with a solution, but with a reply stating why a particular proposed solution was incorrect. While this does not strictly speaking help … | |
Re: I'm not up to SQL 2012 yet (I'm using 2008) but this works for me. My table is FileName VARCHAR(255) (PK) WordDoc VARBINARY(MAX) To get the data into the table you have to read the Word document into a Byte array as binary. When you want to recreate the document … | |
Re: Here is an example of loading a combobox Dim con As New SqlConnection("Server=.\SQLEXPRESS;Database=PUBS;Trusted_Connection=yes;") Dim cmd As New SqlCommand("", con) cmd.CommandText = "SELECT au_lname FROM authors WHERE city = 'Oakland'" con.Open() Dim rdr As SqlDataReader = cmd.ExecuteReader ComboBox1.Items.Clear() Do While rdr.Read() ComboBox1.Items.Add(rdr("au_lname")) Loop rdr.Close() con.Close() Just modify the SELECT statement to … | |
Re: Try saving this code into convert.vbs set fso = CreateObject("Scripting.FileSystemObject") set arg = Wscript.Arguments if arg.Count <> 2 Then Wscript.Echo "Convert inputfile outputfile" Wscript.Echo "Creates outputfile from inputfile by replacing" Wscript.Echo "unix line-ending (vblf) to Windows format (vbcrlf)" Wscript.Quit End If text = fso.OpenTextFile(arg(0)).ReadAll text = Replace(text,vblf,vbcrlf) set tso = … | |
Re: As for the non-programming posts, I learned a lot from my discussions with Mel on topics where we were diametrically opposed. I'll miss him. | |
Re: You can reference controls dynamically by name by using Me.Controls(name) So you could do something like Dim data() As String = {"box1", "box2", "box3"} For i = 0 To 2 Me.Controls("textBox" & (i + 1)).Text = data(i) Next If you name your controls tbxProp0, tbxProp1, tbxProp2 then you can do … | |
![]() | |
Re: Sounds like homework. What have you got so far? | |
I have a Dell Inspiron 1720 running Windows 7 Pro. At random times throughout the day it says "boop" (a short, mellow toned beep). It is not associated with any particular action or program and doesn't seem to be a Windows sound. I've run diagnostics twice and nothing shows up. … | |
Re: Pants? I think if I restricted a search to only my posts I'd get mostly rants :) | |
Re: Just to receive things like birthday & Christmas cards, and bills. The only time I use it for outgoing is when I send a donation to some organization and the few greeting cards that we issue. | |
Re: You have to remove the code that doesn't do what you want and add the code that does. | |
Re: Why not use the builtin function. In MS SQL it is SELECT COUNT(*) FROM billing_tbl WHERE CONVERT(DATE,date_due) = CONVERT(DATE,GETDATE()) I think the MySQL version is SELECT COUNT(*) FROM billing_tbl WHERE DATE(date_due) = DATE(NOW()) | |
Re: Here's an example of adding data to a DataGridView with two columns. Dim con As New SqlConnection("Server=.\SQLEXPRESS;Database=PUBS;Trusted_Connection=yes;") Dim cmd As New SqlCommand("", con) cmd.CommandText = "SELECT au_lname, au_fname FROM authors WHERE city = 'Oakland'" con.Open() Dim rdr As SqlDataReader = cmd.ExecuteReader Do While rdr.Read() DataGridView1.Rows.Add({rdr("au_lname"), rdr("au_fname")}) Loop rdr.Close() con.Close() | |
Re: First of all, you say you get a different "solution" which is essentially meaningless without knowing what variable contains the solution. Secondly, it's different code so why should you expect the same result(s)? | |
Re: Your problem is that your position is falling between the cracks. For example, if your x coordinates vary like 53, 63, 73, etc. and you are checking for an exact limit such as x = 100 to stop then your timer will not stop because you pass by 100 without … | |
Re: The easiest way is Dim MyData() As String = System.IO.File.ReadAllLines(MyDataFile) There are those who would tell you to use a StreamReader but for reasonably sized text files this way is much easier. You don't need to declare any helper objects and you don't have to worry about end-of-file testing. You'll … | |
Re: If he's like me he probably had several questions open in different tabs and replied to the wrong one. | |
Re: You might want to look at developing your application as a WPF application instead of Windows Forms. I understand it was designed to maintain consistency across multiple resolutions. | |
Re: You shouldn't have to buy anything for hobby programming. If you want to use VB you can download the free version from Microsoft. I suggest you avoid VB6 and get a dot net version. I think C# is also free for certain versions and if you are so inclined, most … | |
I may be getting paranoid (at least my wife thinks so), but every time I hear/read about the internet of things, all that is said is how wonderful it will be to have everything interconnected and accessible from anywhere you happen to be. However, after all the revelations about the … | |
Re: What do you mean by "scrap"? If you don't want to use email then just don't use it. | |
Re: I'm also partial to Dell. I have had excellent tech support and service (on the fortunately few occasions it was required). We have three Dells in our house. | |
Re: Try using "&" instead of "+". Adodc1.Recordset.Filter = "br_name LIKE '" & t & "'" _ " OR mo LIKE '" & z & "'" | |
Re: A free (and relatively lightweight) PDF reader is available from [Foxit](http://www.foxitsoftware.com/Secure_PDF_Reader/) My two cents is to skip VB6 and get the latest version of vb.net that is compatible with your system. | |
| |
Re: There are examples of how to manipulate Excel data in vb.net in the [Code Snippets](https://www.daniweb.com/software-development/vbnet/code/_/58) section. Please have a look and feel free to post specific questions here if you have any. | |
Re: You could start with the [w3 SQL tutorial](http://www.w3schools.com/sql/) | |
Re: The VALUES keyword is used when doing an INSERT, not a SELECT. | |
Re: >If multiple sources say the same thing, it's probably correct. Keep in mind the maxim that no amount of belief establishes a fact. Quantity does not trump quality. Three billion (possibly more) repetitions of the statement "a duck's quack doesn't echo" doesn't make it true. For the record, a duck's … | |
Re: Have a look at these examples in the Code Snippet section. You can find them [here](https://www.daniweb.com/software-development/vbnet/code/464769/export-listview-to-excel-spreadsheet) and [here](https://www.daniweb.com/software-development/vbnet/code/474907/how-to-read-an-excel-spreadsheet-using-adodb) | |
Re: See [this thread](https://www.daniweb.com/software-development/vbnet/threads/486625/convert-color-image-to-grayscale) | |
Re: >I am not sure why science has such a bad stigma amongst US teenagers. I'm guessing that most people these days have little or no idea of the difference between "good" science (or just science) and "junk" science. Clearly lawyers have erased the difference between "possible" and "probable" and the … | |
Re: You should already know how to convert to greyscale from [your thread](https://www.daniweb.com/software-development/vbnet/threads/486625/convert-color-image-to-grayscale) from a while ago. | |
[e-Cigarette from China Infected Man’s Computer with Malware](https://www.yahoo.com/tech/e-cigarette-from-china-infected-mans-computer-with-103466334849.html) |
The End.