Search:

Type: Posts; User: DataMiser

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    14
    Views
    369

    Re: Select case with this

    You don't use select case for this. You would need to use instr() and Mid$() to parse out the string or at least that is the way it appears. Your example is not very clear. Normally what you would do...
  2. Re: Vb6: read richtextbox line by line; out of string space

    I have no idea why you think you need to keep callign command1 nor can I determine why no one has mention using a simple loop but


    Dim arrLines() As String
    Dim x As Long
    arrLines =...
  3. Re: Check if a barcode scanner is launched

    There are a few options some of which may depend on the type of barcode you are scanning. For example UPC codes will be numeric and fixed length.
    You can use the key preview property of the form to...
  4. Re: Project gets stuck when running on Apple computer

    I see you did not answer the questions about have you tried using break, logging or stepping through the code to see where it is actually hanging up.
    This should be your first step. Much easier to...
  5. Re: Project gets stuck when running on Apple computer

    Sorry if this has already been said. I read over most of the posts here but not all.

    You say it freezes. Have you tried hitting break in the IDE when it freezes to see if it show you where it is...
  6. Re: mouse drag not working in vb6 editor

    I'm not seeing any issue here. Thought I was running 21H1 but I checked and looks like it updated to 21H2 at some point.
  7. Re: Trying to get a date from a large number

    Changed the target framework to 4.6 and the statement from post 2 returns as stated,
    Thanks
  8. Re: Trying to get a date from a large number

    Yep, looks like the project is set to use 4.5. I'm not sure at the moment but I think it us set that way because of a component it uses. I will try changing the framework version and see what...
  9. Re: Trying to get a date from a large number

    hmm. I tried that line but it gets underlined in red with the message.

    DateTimeOffset does not contain a definition for FromUnixTimeMilliseconds.
  10. [RESOLVED] Trying to get a date from a large number

    I am processing a Json file that has several date fields within. These are being sent down in a numeric format. I would like to get them into a date time format and am stumpped as to how to do this...
  11. Replies
    7
    Views
    359

    Re: match string and if not

    Your outter loop should be the archive and the inner loop should be the listbox.
    set a var above the inner loop to indicate the item is not found yet.
    In the inner loop check each item against that...
  12. Replies
    14
    Views
    16,486

    Re: How to change color of title bar?

    That is the lastest version of VB.Net, much different than VB6 which is from Visual Studio 6 (1998) There is another section of this forum for VB.Net related questions.
  13. Re: Why is my application infected according to VirusTotal site?

    So does that mean that it is yes to all three / four questions?
  14. Re: About a single instance of a For Next loop

    For a = 1 To 1
    If a = 0 Then
    a = 0
    a = a + 1

    Hmmm.. So you are telling it A=1 then you are checking to see if A=0 even though you have just set it to...
  15. Replies
    3
    Views
    315

    Re: Inconsistent label spacing

    Well without seeing the code that does the screen layout there is little more to do than guess. Clearly there is an issue in the code but again without seeing it there is little to say.
  16. Replies
    20
    Views
    1,089

    Re: SQLITE Select records by date

    It would help if you would confirm which data type you are working with. Is your date stored as text in the format you showed in the first post or is it stored as a numeric value much different than...
  17. Replies
    20
    Views
    1,089

    Re: SQLITE Select records by date

    It would help to know what "this code not work" means?
    Did you get an error? Did you just get an empty result set?
    It would also help to know what value you used in the query.

    Keep in mind that...
  18. Replies
    19
    Views
    1,011

    Re: Print barcode on Datareport

    In post 15 he says he is using Active Reports


    Thinking about it a little more seems like there may be a little bar that you can drag across to set report width as well.
    If you set the smaller...
  19. Replies
    44
    Views
    1,978

    Re: The most lacking language feature in VB6

    Well in todays world there are a lot of things missing from VB6, it is after all ~25 years old. Lots of new things have came along over the last 20 years and are not in VB6, in many cases there are...
  20. Replies
    19
    Views
    1,011

    Re: Print barcode on Datareport

    It's been a while but I think you just have to pay attention to the ruler at the top and make sure your report does not exceed the required size.

    You can set your default printer paper size to the...
  21. Re: VB6 compiled app gives Class error on a few PCs

    Yep we were working on systems remotely even back in the 90s where customers were running NT or Windows 95. PC anywhere over a dial up, wasn't ideal but it got the job done. Now of course it is...
  22. Re: Save and Restore a Form's Position When Project Closed and Restarted

    On another note, forgive me if it has been mentioned already as I did not fully read all the posts.

    I would create a routine in a module that handles the loading and another that handles the...
  23. Re: VB6 compiled app gives Class error on a few PCs

    I always used to use a VM or a ghost image pc that had nothing at all installed on it to test my install images.
    Often they would work fine on most PCs but fail on one of those clean images due to...
  24. Re: Save and Restore a Form's Position When Project Closed and Restarted

    Typically, I would use an ini file for such a purpose.

    Read the ini file at start up of from or program and have defaults assigned.
    Save the current values upon closing of the form or program so...
  25. Re: [RESOLVED] How to simulate "try-catch-finally" in VB6

    Well the order is a bit different but my first thought for doing some sort of try/catch/finally was

    Sub
    On Error Goto Catch

    Some Code here that may generate an error

    Finally:
    Final code...
  26. Re: Installation problem again - unexpected error quitting

    If it belonged to someone else how do you know that VB was not installed and improperly removed at some point?

    In any case the actual legit copy of VB does not work if you just copy files, it...
  27. Re: [RESOLVED] Print all records from database table

    If you want the two fields printed on the same line with a comma between them then you would do it like

    Printer.Print Rs!ID &"," & Rs!FullName

    What you had should have been throwing an error.
    ...
  28. Re: Installation problem again - unexpected error quitting

    If you copied files from a legit copy of VB to your PC and it worked just fine the only explanation I can think of is that VB6 had been previously installed properly on that system and if it was...
  29. Re: Installation problem again - unexpected error quitting

    My VS Pro discs will not install under 10 without jumping through some hoops. I think the same hoops were required under Windows 8 and 7 maybe even Vista. Been so long I can't remember.

    My VB6 ENT...
  30. Re: Installation problem again - unexpected error quitting

    Well you could set a restore point and run the setup as admin and see what happens.

    I have not tried the VS installer under 10 myself I know there was an issue with the setup at some point related...
  31. Re: Installation problem again - unexpected error quitting

    You have to actually install, there are lots of things that need to be properly registered in order to work. There are several threads about how to install under Windows 10. Just a simple copy of...
  32. Replies
    11
    Views
    735

    Re: Weird error

    I would suggest setting a break point on that line that loads the msg form then single step through the code to see exactly where the error is occurring and then go from there.
  33. Replies
    11
    Views
    735

    Re: Weird error

    And what does the DoAutoBackup do? Sounds like it is trying to use a connection or object that you have closed before it is called.
  34. Replies
    10
    Views
    487

    Re: Project failed to buid

    Not there in either place on my system. Running vb6 enterprise version with SP6
  35. Replies
    10
    Views
    487

    Re: Project failed to buid

    publish is not on that menu on my system. Can't say I have ever saw it in VB5 or 6 though perhaps it was there when doing web stuff as that gets published to the web site but even then I'm not sure...
  36. Re: Simulate C# "private static" in VB6 (Organization of VB6 Source Code)

    Should be as simple as just not making them public.
  37. Replies
    10
    Views
    487

    Re: Project failed to buid

    The terms publish and build sounds like we might be talking about VB.Net rather than VB6 or older.
  38. Re: Code in Form vs code in Module ? Why one more the other ?

    Just to add as far as using multiple modules. It is best to try and keep like code together in modules. You do not want a bunch of modules with just a little code in each of them. If you have some...
  39. Replies
    19
    Views
    1,011

    Re: Print barcode on Datareport

    You have to design your report to the size of the paper you want to use. If your printer uses a 4 inch wide paper and your report is more than 4 inches wide including margins you may get nothing...
  40. Replies
    19
    Views
    1,011

    Re: Print barcode on Datareport

    There are many different ways to print barcodes. You have provided no information about how you are doing this so that makes it tough to answer.
    It could be that your barcode is to large for the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width