Search results for query: *

  1. jmcilhinney

    How can I fix an error in the app.config file. I opened it and I saw <configuration> marked as error

    If you hover the mouse over that underlined code, is a message displayed?
  2. jmcilhinney

    How can I fix an error in the app.config file. I opened it and I saw <configuration> marked as error

    If you build the project, what happens? If it fails, is there an error message in the Output or Error List window?
  3. jmcilhinney

    [COMPLETE] Forum upgrade coming soon, maybe today.

    Seems to be working fine so far. I did see the site offline a couple of days ago so I assume it was in the throes at the time. Haven't had an issue since but haven't tried anything too exotic yet.
  4. jmcilhinney

    Visual Studio can't start debugging because the debug target.

    The error message indicates that the EXE for your project that you're trying to debug does not exist in the expected location. The first thing to do would be to check that path to see whether the file actually does exist or not. You can do that in File Explorer or in VS. If you right-click on...
  5. jmcilhinney

    Convert Number in VB.net

    The code you originally posted is performing bitwise logic, which is basically Boolean logic on corresponding pairs of bits, treating 1 as True and 0 as False. And and Or are bitwise operators in that context and << and >> are bit-shift operators. If you want to get a better understanding of...
  6. jmcilhinney

    Convert Number in VB.net

    If you don't know what that code does then why use it at all? If you want to reverse the order of the bytes then just get the bytes and reverse the order. The BitConverter class has methods to convert between an Integer and a Byte array and vice versa, so all that's left is reversing the array...
  7. jmcilhinney

    Convert Number in VB.net

    There are four lines of code that do the calculations and three lines contains multiple operators. It doesn't sound to me like you're debugging at all but just looking at the final result. If you don't understand what each operation is doing, maybe the first thing to do is learn that.
  8. jmcilhinney

    Convert Number in VB.net

    You need to debug your code and actually look at the bits at each step to see what's happening and whether it is what you expect to happen. You don't fix code simply by looking at the initial input and the final output. Set a breakpoint at the top and then step through the code line by line...
  9. jmcilhinney

    Resolved Timer control is not visible on my main form VB.NET 2017 - 2022

    There is no Timer control. The System.Windows.Forms.Timer class is a component, not a control. Components can be added to a form in the designer and controls are specialised components that inherit the Control class. That Timer class is basically an alarm clock. You set the Interval, Start it...
  10. jmcilhinney

    copy data from database

    If that's the case then it sounds like you should be executing SQL code against the existing database to modify the schema as required, not copying data from an existing database to a new one.
  11. jmcilhinney

    copy data from database

    I don't know what that means. Please provide a FULL and CLEAR explanation of the problem.
  12. jmcilhinney

    copy data from database

    You can just ignore the field3 column. If you insert a record and don't refer to that column in the INSERT statement, it will remain NULL, just as you want.
  13. jmcilhinney

    I changed VB 2017 to 2022 and my Imports system.data.Sqlclient turned light color

    If it's an existing project then, assuming it's still on the same machine, the target framework is already installed. If it's a new project then VS wouldn't let you target a framework that isn't installed.
  14. jmcilhinney

    I changed VB 2017 to 2022 and my Imports system.data.Sqlclient turned light color

    Did you create a new project or did you open an existing project? In either case, what framework is the project targeting?
  15. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    I'm sure that @Rythorian can defend themselves if they feel the need. There's no need for you to do it. Helping is great and I'm certainly not trying to discourage that but unnecessary quotes - especially long ones - don't help anyone and just make reading the thread harder. You concentrate on...
  16. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    Note that, if you're comparing the same column to multiple values using = and then using OR to combine those criteria, you can do it more succinctly using an IN clause. The equivalent of this: SearchColumn = @ID OR SearchColumn = @Company OR SearchColumn = @Solutions would be this: SearchColumn...
  17. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    @Rythorian, please don't quote other posts without any good reason. Why would you need to quote post #1 when it's the only post from the thread starter? It's obvious you're responding to that post. Your posts are already long enough, which is fine, but don't make them even longer and clutter up...
  18. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    Apart from that, your SQL code makes no sense. Your WHERE clause is malformed. It ends with a comma, which is wrong, and this makes no sense: SearchColumn = @ID, @Company, @Contacts, @Telephone, @Address, @Email, @AppoDate @AppoTime, @Matters, @Solutions Did you actually mean to AND or OR...
  19. jmcilhinney

    Resolved Must declare the scalar variable @ID?

    Your SQL code contains 10 parameter placeholders but, according to the code you posted, you're only adding one parameter named @Company. What about @ID, @Contacts, ..., @Solutions?
  20. jmcilhinney

    Resolved Object reference no set to an instance or object ?

    @manny cash, if your issue is resolved, please click the Resolved button above the first post so that everyone can see without opening the thread and reading the whole thing. Also, if a specific post provides the solution, please mark that post by clicking the tick/check mark on the right. I've...
Back
Top