Click here to Skip to main content
15,890,995 members

Videos


Page 7 of 1,135
2 3 4 5 6 7 8 9 10 11


.

()
» »
Updated:
Rating: ()
121. Problem with updating already stored remaining time, with new current time
Hi, your ComboBox3.SelectedIndex = i is not doing anything useful. Your Dim parsedate As DateTime = ComboBox2.SelectedItem.ToString will give the same result on each iteration of your loop, and all items in ComboBox3 will end up showing the...
Programming Languages » Visual Basic »
Luc Pattyn Updated: 16 Jan 2022
Rating: 5.00/5 ( (2 votes))
.

()
» »
Updated:
Rating: ()
122. What does the statement 'arraylist<treenode> children; ' mean and do? Can someone explain
(1) ArrayList children; declares an object called "children" with type "ArrayList" where ArrayList is a particular collection of objects, in this case all those objects must be instances of type TreeNode. So children will be a bunch...
Luc Pattyn Updated: 16 Jan 2022
Rating: 5.00/5 ( (2 votes))
123. Datetime not a valid format, passing by combobox
The custom datetime format string "hh:mm:ss" will fail when hh is not in the range [01,12]. What you most likely need is "HH:mm:ss" which accepts [01,24]. See Custom date and time format strings | Microsoft Docs[^]
Programming Languages » Visual Basic »
Luc Pattyn Updated: 16 Jan 2022
Rating: 5.00/5 ( (1 vote))
124. Code keeps adding a whole list of items instead of the selected item
Here is a simple cart implementation. It uses a single PHP file, no javascript and no session! (Normally one would use javascript so adding/removing an item would not request a new page from the server) It mimics a database table by first...
Luc Pattyn Updated: 16 Jan 2022
Rating: ( (No votes))
125. CPU player code, to always keep it away from player - C++
Assuming you know how to run towards some point, how about running in the opposite direction? In other words, assuming you have available for each point the distance to some point, rather than going downhill, go uphill.
Luc Pattyn Updated: 14 Jan 2022
Rating: ( (No votes))
.

()
» »
Updated:
Rating: ()
126. Code keeps adding a whole list of items instead of the selected item
Hi, I do have lots of PHP/MySQL experience but never implemented a basket/cart, so I can't judge your overall approach. However I do have several comments: 1. General comment: too much effort and code have been spent early on presentation while...
Luc Pattyn Updated: 13 Jan 2022
Rating: ( (No votes))
.

()
» »
Updated:
Rating: ()
127. Incorrect syntax near 'as' incorrect syntax near ')'
Your SQL statement is incomplete, you still have to do something with those hotels. Example: with hotels as ( select * FROM dbo.hotel_2018 union select * FROM dbo.hotel_2019 union select * FROM dbo.hotel_2020 ) select * FROM hotels doesn't give...
Luc Pattyn Updated: 12 Jan 2022
Rating: 5.00/5 ( (3 votes))
128. How I to save data in mysql
Hi, 1) your HTML FORM tag is incomplete, it is lacking action and method parameters. See e.g. HTML form tag[^] Without them, clicking your submit button will do nothing at all. From your PHP code, it seems the method you want is 'post'. 2)...
Web Development » HTML »
Luc Pattyn Updated: 12 Jan 2022
Rating: 5.00/5 ( (1 vote))
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
129. What have I done wrong
That is a lot of dead code (and a whole range of blackness). You took some care of how it looks, but you completely neglected functionality. There is only a single onclick() and it refers to a non-existing function. Suggestion: develop...
Luc Pattyn Updated: 8 Jan 2022
Rating: ( (No votes))
130. Create and use an event so as to execute a block of code whenever a boolean in loop evaluates to true
The property-approach Griff suggested is one step in your journey. But there is more to it. You did not tell us anything about the "Process" that you claim gets started; it by itself will take time and resources that may matter a lot. If it is...
Luc Pattyn Updated: 4 Jan 2022
Rating: ( (No votes))
131. C# force ISO 4217 currency symbols
That was interesting! Try this: using System; using System.Globalization; using System.Linq; namespace ConsoleApp { internal class Program { static void Main(string[] args) { Console.WriteLine(GetPrice(123.43, "CAD"));...
Luc Pattyn Updated: 3 Jan 2022
Rating: 5.00/5 ( (2 votes))
132. Java.lang.nullpointerexception: attempt to invoke virtual method on a null object reference
it looks like bmp is null due to resourceId being zero. And you did not show any code that sets resourceId...
General Programming » Exceptions »
Luc Pattyn Updated: 2 Jan 2022
Rating: 5.00/5 ( (2 votes))
133. When executing unavailable file exception occurs but after that error is occuring! ! !
you shouldn't use the same name for a function and one of its variables. Even if it would be allowed in your programming language, it always is a bad practice, as it confuses everyone. Hint: use nouns for variables, and verbs or verb+noun (e.g....
Programming Languages » Python »
Luc Pattyn Updated: 2 Jan 2022
Rating: 4.00/5 ( (1 vote))

Page 7 of 1,135
2 3 4 5 6 7 8 9 10 11