4,901 Posted Topics
Re: It should work as written. For example, to toggle between two strings you could code Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click If Button1.Text = "On" Then Button1.Text = "Off" Else Button1.Text = "On" End If End Sub or more concisely Private Sub Button1_Click(sender As Object, e … | |
Re: Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). We don't do your homework for you, but we will help **if** you show what you have done so far and where you are having a problem. | |
Re: Try putting a double quote before `SELECT`. | |
Re: >Then write everything as if it's going to be you who will have to maintain it in 10 years time. I always overestimate my ability to understand code I wrote even a few months back so I assume that my code will be maintained by a psychotic programmer who knows … | |
Re: Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). | |
Re: It's like asking "what's the best tool I need to learn to be a carpenter". It depends what you want to build. Different languages excel in different areas. As in most disciplines, there are fundamentals than need to be learned and these can be learned regardless of the language. However, … | |
Re: We are happy to help if you are stuck with a particular problem but we don't do homework. Please post what you have done so far and where you are having problems. | |
Re: If you are going to calculate pi as the sum of a series then you should sum from the smallest term to the largest to avoid losing small values due to the limitations of your storage type. While this will not matter if you are using a small number of … | |
Re: You seem to have created this thread twice. I left something in the other thread. | |
Re: Typically you would create a dictionary where the username is the key and the password is the value (hopefully, encrypted). | |
| |
Re: Since `split` already returns an array of strings, why would you want to use individual variables? Surely it is easier to use an array of any length rather than scalars where you will eventually have one more string than you have variables. `Split` splits by default on blanks so you … | |
Re: Whatever basic you are using I suggest using a regular expression. The following expression will match any word of more than one letter (no apostrophes) as long as you use the ignore case option. ([a-z])[a-z]*\1 The first `[a-z]` matches the first letter in a word. Putting it in parentheses allows … | |
Re: You have to learn the idioms. >You need to return a list that consists of the elements that are common to the two lists. Who can tell? list(set(a) & set(b)) | |
Re: Suggestions: 1. Store all values as cents (integers) to avoid conversion/rounding problems. 1. Create a list of change denominations from largest to smallest 1. Use a loop with that list | |
Re: I've been usiing calibre for years and have had no trouble using "send to device" with my Android phone. | |
I've been following the latest efforts (in the US) of the GOP to unfairly redraw electoral boundaries and was considering how simple a law could be worded to ensure a more fair allocation of electoral districts. What I came up with is: 1. All boundary lines must consist of straight … | |
Re: Is there a reason you need to run the scripts from within idle as opposed to just running the scripts directly? If so then I suggest you look at [AutoItX](https://www.autoitscript.com/site/). I've been using AutoIt for years in both a corporate and home environments, originally from vbScript but now from Python. … | |
Re: When I hear "hacker" I think of someone who is doing "seat of the pants" computer work, whether legal or not. I've had to do a fair bit of this in my years of being on call for our System Control Centre. At 3:00 when the system is in the … | |
Re: You sound like a Jordan Peterson clone or someone who has stumbled across the [BS Generator](http://sebpearce.com/bullshit/) site. If you are trying to make a point you have totally obscured it with meaningless jargon. Instead of trying to impress us with your mastery of buzzwords why don't you try again in … | |
Re: Typically you'd want to give as few of each unit of change as possible. Start with a list of denominations from largest to smallest and cycle through them in turn, extracting as many of each denomination as possible. Stop when there is no more change to give. For extra credit … | |
Re: We've been keeping busy doing a renovation on my father-in-law's old house. He moved out in January. So far we have ripped out the carpets on the upper two levels (it's a three level back split) and put in laminate, retiled the upstairs bathroom, replaced the tub/shower with a new … | |
This thread is a continuation of a conversation that I started [here](https://www.daniweb.com/digital-media/digital-marketing/threads/522661/where-to-buy-instagram-followers#post2261270). As Dani correctly pointed out, the discussion belonged in its own thread and should not have taken over the thread in which it started. It wasn't my intention to hijack that thread (and I apologize) but that's what … | |
Re: I can only offer generic advice but I would recommend wxPython over tkinter. There is excellent help available through many wxPython books and a [user forum](https://discuss.wxpython.org/). I've also posted several step by step wxPython projects on Daniweb. | |
Re: Plus your link to the code requires a login. Not a great way to start. | |
| |
Re: If you already know how to program well in another language then learning to program in java should be "easier". However, learning any new skill takes time and effort in spite of all the "Learn X in 21 days" books available. If you don't already know how to program then … | |
Re: Adam (the son you met in NY) ordered us a Quest 2 and it should arriving any day now. He just got his and he says it is awesome. I'll let you know what we find out. So how you doin'? | |
Re: Best game in 2018? Canasta. And what's wrong with a good old-fashioned card game? It involves interacting with actual people in actual reality. It involves thinking instead of just frantically reacting. And there is lots of interesting conversation. You also don't have to pay for downloadable content and there are … | |
Re: You should never (ever) have an unqualified `except`. Doing so masks errors. Remove the `try/except` and let the error crash your code so you can see what the problem is. | |
Re: Price and functionality. I'm more interested in how other people look to me than how I look to other people. | |
Re: Try `winsound.SND_FILENAME | winsound.SND_ASYNC` for the flags | |
Re: An easy way to enable/disable the admin account is to open a command shell as admin (press WINKEY+X and select Command Prompt (Admin)) then type either of net user administrator /active:yes net user administrator /active:no | |
Re: Still probably better to put it in a script file even if you only have to do it once. That way you can check for typos. The more file names you type the higher the chances of typing one incorrectly. Type - proof read - execute. | |
Re: Unfortunately my father-in-law's senior's block is in lockdown, and Adam is stuck in Cambridge so it will be a quiet Christmas with just me, my wife, and number 2 son who lives four houses down. He has been working from home since March and we are the only people he … | |
Re: >When I access an api. it returns data in below format >n2035014,25 N2035014,25 B2035014,2944.40,250,3787.30,2400 o24,22971.20 h24,23064.15 l24,22641.40 c24,22945.05 i24,22744.40 I have my doubts as to the format of the returned data. Can you please be specific? For example, is the data returned as a blank-delimited string or as a series … | |
Re: The only way to permanently disable it is to never connect to the internet. | |
Re: There are a couple of problems. The spec says to run for xl=2 xu=6 es=0.001 imax=1000 iter=1 ea=0.0001. The problem is that `iter` is not a parameter. Should this be `xr=1`? You don't need to import numpy. Remove it. You have to define the function `f(x)`, likely as def f(x): … | |
I've been a member of Daniweb since 2010 and a moderator for most of the last ten years. I had the great pleasure of meeting our illustrious founder and leader in 2015. I've enjoyed many interesting discussions, particularly the ones which caused me to re-evaluate some of my own opinions. … | |
Re: Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). You have to show proof of effort to get help. | |
I think I finally understand why Trump is doing so well (he recently pulled even with Hillary Clinton). It's only after years of shows like American Idol and America's Got Talent that his rise is possible. These shows got Americans used to the idea that they could vote with no … | |
Re: I've been using Brave rather than Chrome although I still keep Chrome (and Firefox) around. I don't even care to try Edge. | |
Re: I'll take a crack at this even thouh my c is a tad rusty. If you are storing references to strings in your stack then the struct should look like struct stack { char *data; struct stack *next; } otherwise all you will be able to store is a single … | |
Re: I think your problem can safely be narrowed down to: 1. A hardware problem 1. A software problem 1. An earthquake depending on what you mean by "keels over" You do realize, I hope, that nobody can diagnose your problem without details. | |
Re: How hard is it to type **how to add a menu in vb.net** into google? It took me a lot less time to do that than it probably took you to post that question. | |
Can anyone recommend a free flv to avi converter? There is a lot of free software out there so I have choices but can anyone recommend one that is free of trojans, viruses, malware, etc.? I've already got the DivX codec and converter but the DivX converter will not do … | |
Re: It would help if you told us what OS you are running. Assuming you are running Windows, I have never found it necessary to use anything other than the anti-virus that comes with WIndows 10. In fact, on the computers I service for friends and family I frequently remove third … | |
Re: For starters the line cout << "Welcome " << name << " You can come into the bar!" << is incomplete. And char answer, is also invalid. Your compiler would have complained about this. Fix your syntax errors (there are many others) and get back to us if you still … |
The End.