Search:

Type: Posts; User: DataMiser

Page 1 of 13 1 2 3 4

Search: Search took 1.05 seconds.

  1. Replies
    9
    Views
    135

    Re: Remove duplication in listview column

    not much to go on but my first thought is to store the last value added to the list for that column and it the next value to be added is different then update the store but if the same then do not...
  2. Replies
    58
    Views
    953

    Re: need 2 decimal places

    According to the info I saw on their site support ended in 2005 and extended support ended in 2008. The fact that it still works is about all one can hope for at this point and there is no way to...
  3. Replies
    58
    Views
    953

    Re: need 2 decimal places

    VB6 actually lost support over a decade ago.
  4. Re: Send Commands To CMD Window (without sendkeys)?

    So you are trying to open a command window so you can execute calc.exe? That really makes no sense. Why not just open calc.exe using one of the shell functions and bypass the command window...
  5. Re: Delete the last item in listview

    The code below would handle deleting any and all checked items in the listview no matter the number or location of said items

    Dim DeletedItems as integer
    For idx = lvw.ListItems.Count to 1 step...
  6. Re: Delete the last item in listview

    Well the first thing that jumps out at me is that if you want to delete the last item then why do you loop though all the items from the beginning? Would it not make a lot more sense to start at the...
  7. Replies
    58
    Views
    953

    Re: need 2 decimal places

    My guess would be different locale settings. In the US I would expect that 11,5 to be an issue and 11.5 to work just fine.
  8. Replies
    58
    Views
    953

    Re: need 2 decimal places

    You show dim for f,g,h,i but the vars you are using are txtf, txtg, txth, txti and you do not show a value for txtg.
    Given what you have show values for the only way that would be 11.25 would be if...
  9. Replies
    58
    Views
    953

    Re: need 2 decimal places

    Yeah I know. I just put the .0 on there to make it clear that the 1/4 would be dropped.
  10. Replies
    58
    Views
    953

    Re: need 2 decimal places

    Well looking at your code the values you gave would add up to 11.25 but you are also adding other things to that on the same line which you have not given us a value for. You also did not indicate...
  11. Thread: ADO on Lan

    by DataMiser
    Replies
    17
    Views
    489

    Re: ADO on Lan

    In terms of speeding it up it would help to know what you are doing that is slow. Also you should know that filling a listview from a large recordset is probably the slowest method you could choose.
  12. Replies
    17
    Views
    479

    Re: Vb6: Winsock grab full data on arrival

    Wow, if you did it right it would work. No I am not going to write it for you. Using the code I showed before you simply to to have an empty text box when you start to load the data, the data will go...
  13. Replies
    17
    Views
    479

    Re: Vb6: Winsock grab full data on arrival

    You have to clear the text before you try to load a new page.
  14. Replies
    17
    Views
    479

    Re: Vb6: Winsock grab full data on arrival

    To get all the data you have to get reading and storing the data until the data stream stops. It could take many reads to get it all. You have to buffer the data with each read.
    The code you have...
  15. Re: Visual Basic 6 shipped project throws error on compilation

    Do you have an EventPreviewRecord [whatever that is] on every form? If the active form does not have it then you will get this error when that code executes.
  16. Replies
    2
    Views
    182

    Re: Weird behavior of focus

    Sounds like something is shown modal and is behind your form taking focus away from it.
  17. Replies
    9
    Views
    389

    Re: LOOPING fso array txt

    So you couldn't do that yourself? Also note that you should not be placing your files in the root of the drive.
  18. Re: This may be a tough question for the gurus

    So are you really looking for a way to turn a device off or are you looking for a way to disconnect the device. There are many different things that can be plugged into a USB port and many of those...
  19. Re: [MSComm] receiving binary and ASCII data

    Your code is trying to convert binary data into a unicode string. Why?
  20. Re: Editing Access database via Listview checkbox.

    Not sure why you are looping through the entire recordset as you only appear to be wanting to update one record. If I am correct and your intention is to update only the selected record then at the...
  21. Replies
    12
    Views
    428

    Re: RainMeter in VB6?

    Well I wasn't referring to do events, but code where each object gets updated one step at a time and all objects get updated that one step before any get updated a second step. There are methods to...
  22. Replies
    9
    Views
    348

    Re: toolbar behavior

    I think you missed what I was talking about here. The stuff I was talking about copying does not show up in the IDE

    When you open the VBP in notepad you can see the class ID of the control used by...
  23. Replies
    12
    Views
    428

    Re: RainMeter in VB6?

    You only have one thread for the GUI you would have to use some timing mechanism to allow each of your graphics to update one after the other very quickly to make them appear to all be moving at once.
  24. Replies
    9
    Views
    348

    Re: toolbar behavior

    hmm.. I haven't tried it myself but I would think that you could create a new project, add the 5.0 toolbar to a form, save it then open the vbp and frm file in notepad, copy maybe as little as one...
  25. Replies
    8
    Views
    424

    Re: How do I run VB6 code as string in VB6?

    The company I used to work for had a product that used the SAX Basic control for processing script. We had extended it with additional functions and included it within one of our main exes. The...
  26. Re: Visual Basic 6 shipped project throws error on compilation

    Well the code you have shown appears incomplete. There is nothing shown to update. The code opens a recordset and then issues an update without having made any changes. Even if it was working it...
  27. Re: Visual Basic 6 shipped project throws error on compilation

    What is the error message that you are getting?
  28. Replies
    3
    Views
    355

    Re: Windows 10 and VB6 compatibility XP SP3

    I always have my IDE set to prompt for save when running from the ide. There were a few times long ago when I did not have it set that way where I would be coding and testing for some time and not...
  29. Re: Visual Basic 6 shipped project throws error on compilation

    The same connection should work so long as it is pointed to the correct location. Been a while since I worked with older SQL but if memory serves even code written for versions older than 2000 still...
  30. Re: old vb6 and visual studio community edition

    The only conflicts I have ran into over the years seemed to be with 3rd party tools. I remember I tried to install VS2005 on a machine that already had VS2003 on it and some of my 3rd party tools...
  31. Re: How Retrieve the existing functions in a DLL from VB6

    There is the Object Browser in the IDE. You can view info int any of the libs that you have referenced in your project from there.
  32. Re: Visual Basic 6 shipped project throws error on compilation

    Ok there was a know issue with the MSComCTL in Windows 7

    A possible quick fix would be to create a new project, add one of the controls from the MSComCtl on your new machine.
    Save the project...
  33. Replies
    22
    Views
    786

    Re: Advise on Function's Intent

    Actually it looks like it is removing removing spaces and dashes if they exist. It is not looking for both together as it is only looking at 1 character at a time but if that character is in the...
  34. Re: Visual Basic 6 shipped project throws error on compilation

    Check your project folder for a frmmain.log file. If it exists have a look at it as it will likely point you to the problem.
  35. Replies
    10
    Views
    354

    Re: [RESOLVED] else if (uh boy)

    The problem with your code in the OP is you have to many end if statements. The correct structure is


    If Something Then
    Do Something
    ElseIf SomethingElse then
    Do Something else
    ElseIf...
  36. Re: Parsing string, counting commas and removing text

    Just off the top of my head I think I would start by splitting the string on the commas. That will allow you to quickly and easily see how many numbers are there and separate them into an array where...
  37. Replies
    28
    Views
    939

    Re: This is not BASIC! Help!

    Yep, I have never saw a case where the port was left open and bound to a program. I've did quite a lot of serial work in various versions of VB going back to VB Dos and up through VB.Net 2008 have...
  38. Replies
    7
    Views
    427

    Re: Lock Final Window Size?

    The height and width properties should set the size of the window. If those are not doing anything then I would suspect some other code in there overriding them.

    If you want the window to be...
  39. Replies
    28
    Views
    939

    Re: This is not BASIC! Help!

    Can't say I have ever had that happen with any of my programs which have ran on every OS from Win95 on up. I have one that comes to mind which opens three ports and keeps them open all day everyday....
  40. Replies
    28
    Views
    939

    Re: This is not BASIC! Help!

    Not sure what you mean there? The port can remain open for extended periods while you program runs if needed. I have a few that monitor the serial port for incoming data so they close the port only...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width