Search Results - VBForums

Search:

Type: Posts; User: techgnome

Page 1 of 13 1 2 3 4

Search: Search took 0.39 seconds.

  1. Replies
    8
    Views
    125

    Re: Error Handling Instance

    If you're talking about the null issue :


    x = if(isdbnull(something), "It's Null', something.tostring)


    If you're talking about other errors, then it depends on what the error is.

    Let's...
  2. Replies
    8
    Views
    125

    Re: Error Handling Instance

    If this throws an error:
    kCell = DataGridView1.Item(Col, Row).Value.ToString

    What is the error? That's what I'm talking about... you KNOW the error is going to happen... so you TEST for that...
  3. Replies
    8
    Views
    125

    Re: Error Handling Instance

    By preventing the error in the first place.

    -tg
  4. Replies
    26
    Views
    421

    Re: How do I create unique random numbers?

    Just.
    Let.
    It.
    Go.

    For Haskel's sake, let. it. go.


    -tg
  5. Replies
    1
    Views
    80

    Re: filtering the datagridview

    doaes the dgv have a datasource? Is it a datatble? if so, the datatalble has a .DefaultView property which has a .RowFilter you can use to filter out/in what rows you want.

    -tg
  6. Replies
    476
    Views
    20,597

    Re: What if there was a NEW vb6

    Since I'm not one to click on random links perhaps you can sum up what it's about?

    -tg
  7. VS 2008 Re: SQL Insert Into Output Into - Error 'You must declare the table variable'

    You're telling it to put the output into a table @B_BID ... but there is no declaration of @B_BID as a table in the SQL.

    When you use the OUTPUT keyword like that, it wants to dump it into a...
  8. Replies
    26
    Views
    421

    Re: How do I create unique random numbers?

    While it is true you don't HAVE to use the .NET methods... you SHOULD. Things have been improved. The old methods are there because they are part of the BASIC lexicon, but that doesn't necessarily...
  9. Re: Passing a filepath to a web service - Problem

    what does the service do?

    meaning that it depends on what the service does with the string you're sending it.

    -tg
  10. Replies
    5
    Views
    170

    VS 2010 Re: Ternary Operator

    well,m the problem is that the firs treadline will read the first line, "string|3"... the true condition will read the SECOND LINE - "string|8"
    I do not think this is what you want.

    you don't...
  11. Replies
    2
    Views
    128

    Re: Tricky Problem with Web Site and PDF

    alternative: you create a page for them to fill out, saving as the y go, or what ever, then when they want the pdf, you (from the backend) fill in the holes/data, and give them the completed pdf (you...
  12. Re: How to add radio buttons to OOP classes/ arrays

    that's because you're printing the whole class:
    <input type="radio" name="radio" id="$myData" value="$myData">
    <label for="$myData"><?php echo $myData;?></label>

    you only want to print just the...
  13. Replies
    476
    Views
    20,597

    Re: What if there was a NEW vb6

    Maybe we're splitting hairs, but to me a desktop isn't movable, while i could undock my laptop and head off to a meetin,g or DC, or San Diego, or Boston. But more and more of our execs use just a...
  14. Replies
    476
    Views
    20,597

    Re: What if there was a NEW vb6

    actually, no they don't "go back to their desks and fire up a traditional desktop" ... their iPad/Tablet/Surface is their primary system. we may have docking stations, but that' it. We're largely...
  15. Replies
    476
    Views
    20,597

    Re: What if there was a NEW vb6

    W/o reading it, I'd venture that "mobile PCs" referrs to things like the Surface Pro line... too big to be a tablet, too small to be a laptop... sort of the "tween" of computing platforms.

    It...
  16. Re: Need help Using ADO.Net to get a query Result

    No, they are not. They are classes like any thing else. The difference here us the Using keyword ... what it does is allows you to dim and create a variable at the same time, but it is limited in...
  17. Replies
    4
    Views
    201

    Re: What have I done wrong now !

    Sounds to me like you accidentally full-docked the properties window, instead of having it as a side bar dock...


    If you grab the tab title bar, drag it over bask toward the side where the side...
  18. Re: Need help Using ADO.Net to get a query Result

    Seriously, it's a simple replace... instead of SQLCommand, use OleDbConnection. Instead of SQLCommand, use OleDbCommand...

    -tg
  19. Replies
    3
    Views
    134

    Re: Differnet Conversions

    I believe that's right... it's something along those lines.

    -tg
  20. Replies
    3
    Views
    134

    Re: Differnet Conversions

    If I have it right a narrowing conversion happens when you take a valuye and stuff it into something that is a similar type, but more narrowly defined... like taking a decimal and stuffing it into an...
  21. Re: Need help Using ADO.Net to get a query Result

    Don't use any thing in the adodb namespace/class... not sure why the examples there used it, except for maybe compatibility with older code that's been upgraded.

    check out the Database FAQ &...
  22. Re: Recognising what code makes use of the local drive

    look for streams - filestreams, memory streams - readalllines, writealllines, read/writealltext... basically any file operations.

    seems like an odd assignment, but im guessing some one has a...
  23. Replies
    13
    Views
    253

    Re: Overload resolution failed

    ok, based on that, this is the constructor you are trying to use
    https://msdn.microsoft.com/en-us/library/164w6x6z(v=vs.110).aspx


    MyFont doesn't take parameters, it's no a function, it's an...
  24. Re: Resetting a form called with .ShowDialog?

    He's using default instance of the form... if you want it clear every time, create a new instance every time...



    dim f2 as new form2
    f2.showdialog
    'you can keep using f2 until it falls out of...
  25. Replies
    13
    Views
    253

    Re: Overload resolution failed

    What is the "MyFont" array? How is it declared and what is it filled with?

    NOTE: ANYTIME you get the overload error - go to google and type "msdn" followed by the class name you're trying to...
  26. Replies
    7
    Views
    181

    Re: Independent Contractor Rate Question

    you can but it had better be worth it.
    if youre not going to work full time, you can still use the above formulas, you just need to adjust the weekly or monthly houyrs to better reflect how many...
  27. Re: why is my listview not showing any records?

    so declare a variable - you have that.
    start the loop - you have that.
    inside your loop increment it - you have this as well, just in the wrong loop
    use the value of that variable as the text of...
  28. Replies
    7
    Views
    181

    Re: Independent Contractor Rate Question

    a couple ways ... if you take your target annual, divide by 12, get to a monthly rate, then divide that by 160, which is on average what a month is (40hrs/wk * 4 week)
    or ... take the annual target,...
  29. Replies
    5
    Views
    263

    Re: Apple Watch Poll

    I stopped carrying a watch on a regular basis years ago. Mostly because, anything i need from my watch - like the time - i could get from my phone. on those cases where I really need a watch, I have...
  30. VS 2013 Re: Class Library Shared or Non-Shared Methods Problem

    you make it public instead of shared.


    theclass and all of its elements, methods & properties in this case should be public. Shared means there is no instance... it is SHARED across all...
  31. Re: why is my listview not showing any records?

    use one loop. count them the same time you add them to the list view.


    -tg
  32. Replies
    476
    Views
    20,597

    Re: What if there was a NEW vb6

    I had a similar experience on a project. in a prevois life they brought a bunch of us on board to build a new entrprise system that would replace some 20+ applications based on dos, access, excel,...
  33. VS 2013 Re: Class Library Shared or Non-Shared Methods Problem

    Right... since httpclient is an INSTANCE of the class inside an INSTANCE of the JssUpdateDLL class, you CANNOT access an instanced variable from teh shared method.... WHICH instance would it be...
  34. Re: why is my listview not showing any records?

    Correct. The reader is a forward only object. so you're burning through it just to get the count. so when it gets to the .HasRows for the list view, it returns false and exits out.

    In short,...
  35. Replies
    8
    Views
    348

    Re: Creating a new database

    That is irrelevant. It doesn't matter how you connect or make the database... what matters is how you grant the permissions and logins.



    The user would only have access if you grant them...
  36. Thread: DGV Format

    by techgnome
    Replies
    7
    Views
    174

    Re: DGV Format

    We do things like this a bit differently. Since gender isn't going to be used outside of the "Person" table, we have a field "GenderCode" which is 0,1,2 (unknown, male, female) then another field...
  37. Replies
    5
    Views
    234

    Re: MS Access VB.NET

    or not... that's the old ADO way....
    ad

    o.
    net doesn't support the ! notation.

    For this you'll use the rows.GetString(0) to get the first column. you wouls use .getXXXX() where XXXX is the...
  38. Re: VBForums P2P browser plugin to work on code in real time, interact with Forum

    I'm trying to decide what's the point of all this.

    -tg
  39. Replies
    4
    Views
    143

    Re: How to find things in VS 2010 Express

    Well ,specifically in this case the solution explorer is a window off to the side that shows your classes, forms, folders, etc in a tree view format. It may be docked with the autohide turned on. ...
  40. Re: Will VB6 and VB .NET 2012 live peacefully on the same PC?

    At one point I had VB6, VS2005, VS2008, VS2010 all on the same machine. No interference form any of them.


    -tg
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.