dcsimg

Search:

Type: Posts; User: PlausiblyDamp

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: Naming convention for form wide variables.

    Also don't forget the joy of a lazy update to the code, a variable with a name like iCount which was probably an Integer at one time but later on somebody realised Integer was only 16bits and changed...
  2. Thread: No Deal

    by PlausiblyDamp
    Replies
    408
    Views
    14,626

    Re: No Deal

    Wasn't that pretty much what Cameron did though - held a referendum and bogged off after the result leaving his replacement pretty much stuck with implementing the result.
  3. Replies
    10
    Views
    279

    Re: List Object question

    When you try to refer to them directly do you get an error? If so what does the error message say?
  4. Replies
    24
    Views
    637

    Re: Question about join order

    The only time I have seen a justification for GUIDs vs Integers on security grounds is when they are visible to the end user, especially if they are part of a URL or similar - integers are often a...
  5. Re: How to keep nested using statements from making your code unreadable.

    Personally I don't have a big issue with code before the using statements, then again I tend to declare variables closer to where I need them rather than always at the top of the module anyway.

    I...
  6. Re: How to keep nested using statements from making your code unreadable.

    It would if there were no catch blocks anywhere, if however this code was in a method that had an unhandled exception but a method further up the call stack caught the exception then the application...
  7. Re: How to keep nested using statements from making your code unreadable.

    If you don't open the connection the DataAdapter will open and close it for you - that would remove the need to wrap the Connection in a using block. If you are leaving the DataAdapter to manage the...
  8. Replies
    1
    Views
    147

    Re: Best way to do some ML on CSV

    https://dotnet.microsoft.com/apps/machinelearning-ai/ml-dotnet might be worth a look, only skimmed over the docs myself but it does look like it is starting to bring a lot of the typical ML stuff you...
  9. Replies
    3
    Views
    163

    Re: value is never used

    In your case the variable is a reference to the object so it is more a case of terminology rather than a fundamental difference.
  10. Replies
    3
    Views
    163

    Re: value is never used

    Not sure if there are any gotchas when dealing with COM but as a general rule under .Net you don't need to set variables to Nothing when you are finished with them. The GC / Runtime will track when a...
  11. Re: Rename multiple files in one directory

    If you only want the first character then https://docs.microsoft.com/en-us/dotnet/api/system.string.substring?view=netframework-4.8 is probably what you need.
  12. Re: Will Entity Framework connect to IBM DB2 or Intersystems Cache databases?

    https://www.nuget.org/packages/EntityFramework.IBM.DB2/
    https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GBMP_eframe

    So looks like they are supported.
  13. Re: Saving code for reuse - best practice?

    The only real issue you can get into is versioning, making sure the client and the library are in step and you don't update the library in a way that could break a client. Nuget makes this a bit...
  14. Thread: No Deal

    by PlausiblyDamp
    Replies
    408
    Views
    14,626

    Re: No Deal

    If the Office for National Statistics, whose job is to know these things, actually tells you the figure is wrong and you choose to keep on using the figure then it seems a lot more like a deliberate...
  15. Thread: No Deal

    by PlausiblyDamp
    Replies
    408
    Views
    14,626

    Re: No Deal

    It seems we can't revoke A50 because the people voted to leave (leaving aside exactly what that was supposed to mean)
    It also seems there is no real desire outside of the Tory party for a No Deal...
  16. Thread: No Deal

    by PlausiblyDamp
    Replies
    408
    Views
    14,626

    Re: No Deal

    The problem with a No Deal Brexit though is that it will be devastating to the UK economy, pushing through such an act of self harm will effectively tarnish whatever party manages to force it...
  17. Re: Database choices using EF - What are your thoughts?

    If you go Aurora serverless as an option you specify a minimum and maximum capacity unit, a capacity unit is a combination of cpu and ram. AWS will be monitoring the memory and processing load of...
  18. Re: Database choices using EF - What are your thoughts?

    1) If each PC really is a standalone installation with no requirement to share data with other machines then a local SQLite might still be an easy choice, if you are updating the software then you...
  19. Thread: No Deal

    by PlausiblyDamp
    Replies
    408
    Views
    14,626

    Re: No Deal

    We seem to be under the impression that a) the EU will cave if they feel under pressure and b) that constantly doing nothing and panicking at the last minute is somehow putting the EU under pressure....
  20. Re: [RESOLVED] Best Practices -- Code Testing

    Might be easier and less confusing for a user of the application if this was controlled externally - reg key, config file or similar. That way there is no chance of a user (or tester) accidentally...
  21. Re: Best Practices -- Code Testing

    I would say the best way is to not do this, running test programs against a live database is just asking for trouble. Could you not simply take a backup of the live database and restore it to another...
  22. Replies
    14
    Views
    618

    Re: Choose which window to open

    Normally you will find this in the Main method of your application, usually in Program.cs
  23. Re: I need some basic help with Entity Framework code first

    https://docs.microsoft.com/en-us/ef/ef6/querying/ should give you an idea of how to query the model.

    Modifying data is a matter of retrieving the data you want to modify, probably by using a...
  24. Re: Avoiding Duplicates in Random Passwords

    Out of interest... Why? Is there a reason something like a SHA256 wouldn't be good enough? Do you want this random filename to be truly random or somehow derived from the filename? If derived from...
  25. Replies
    7
    Views
    316

    VS 2013 Re: Class Could Not Be Added

    Does the class library depend on any other references? Does the executable that references the class library depend on any other references? What versions of the framework are both these two projects...
  26. Replies
    15
    Views
    1,572

    Re: .Net 5 info

    I suppose a well written windows application, i.e. UI and logic in separate projects could go a long way to helping with this - the logic code moves direct to the new framework, the windows UI moves...
  27. Replies
    15
    Views
    1,572

    Re: .Net 5 info

    I suppose that really depends on the migration options available to go from the old to the new, which historically have been poor to non-existent...

    Playing around with dotnetcore 3 though things...
  28. VS 2019 Re: Visual Basic ... trouble with writing to a file

    https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=netframework-4.8
  29. Re: Splitting large TCP messages.

    Which line is giving that error? I can't see any reason why the clientStream.BeginWrite would throw that so I am guessing it is the line


    Dim buffer() As Byte =...
  30. Replies
    11
    Views
    330

    Re: Error BC30506

    Could you show us the code you currently have?

    Then again you only needed to take the Sub from code and paste it into the form's code.

    Just grab everything from Private Sub to End Sub and paste...
  31. Replies
    76
    Views
    2,423

    Re: The best programming language?

    I completely agree, different languages have different strengths and weaknesses so choose the correct one for the job. What "correct" means is another matter entirely :D


    I think the C# vs C++ is...
  32. Replies
    11
    Views
    330

    Re: Error BC30506

    If you have moved the Sub to the Form's code you don't need the Module Program and End Module bits, they are only relevant to a Module.
  33. Replies
    76
    Views
    2,423

    Re: The best programming language?

    I was ignoring things like graphics design etc. as the question was simply about the best programming language and I was really responding to your specific statement about learning something else...
  34. Replies
    76
    Views
    2,423

    Re: The best programming language?

    Personally I would say exactly the opposite, limiting yourself to a single language is more like suicide, knowing multiple languages makes you more marketable as a developer for one thing. I would...
  35. Replies
    3
    Views
    167

    Re: Run batch file

    Are sOrderNumber and sUserName variables? If so I am not sure what you are expecting sOrderNumber$sUserName to be at runtime. HAve you tried putting a breakpoint on that line and seeing what that...
  36. Replies
    30
    Views
    1,035

    VS 2015 Re: Write Current Time

    I am guessing it is the DateTime.Now.Year bit, the year is not going to fit into a single byte as we are way past the year 255.
  37. Replies
    8
    Views
    361

    Re: Negative Random Numbers

    If you wanted all numbers between -500 and + 500 could you not just do something like

    RandomNumber = Int(1000 * Rnd) -500
    to get the appropriate range? Not tested so there is probably an off by...
  38. VS 2010 Re: Need help with OleDbCommand Parameter

    If you don't specify the size then it is inferred from the datatype -...
  39. Re: Need to upgrade to VS 2019 from VS 2017?

    Probably the one thing that might be useful is VS 2019 supports netcore 3, if you are planning on using that then an upgrade might be worthwhile. Then again you could just run both 2017 and 2019 side...
  40. Replies
    4
    Views
    164

    Re: Run time error with string

    What error are you getting?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width