dcsimg

Search:

Type: Posts; User: mms_

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    458

    Re: Help with code logic

    passel
    Was not aware of that... thanks for pointing it out.

    Arnoutdv
    Yes, I had noticed your array was 0 lowerbound, and I tried to modify your code to make array 1 lowerbound,
    but could not...
  2. Replies
    11
    Views
    458

    Re: Help with code logic

    LaVolpe
    The input array will always be sorted.

    BruceG
    Thanks, your code works perfectly!

    Arnoutdv
    I could not get your code to work (subscript out of range errors) but I will continue to...
  3. Replies
    11
    Views
    458

    [RESOLVED] Help with code logic

    A simple task and I just can't get it to work (maybe just getting too old for this stuff)

    I have an array, and need to get rid of duplicate entries

    start with...
    a(1) = 2
    a(2) = 2
    a(3) = 3...
  4. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    Thanks for the code Elroy

    I will try this out and see if I can figure out why your strip quotes did not work for me.
  5. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    Using OptionBase1's suggestion, beginning and ending quotes are stripped up correctly,
    and all works properly.

    Double clicking Project1.abc launches MyProgram.exe, and all data contained in...
  6. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    OK thanks.

    I'm moving forward, but still is not working.
    As you show above, the path is enclosed in quotes, and this is giving me trouble.

    I've used Elroy's code in Post #12 to strip out the...
  7. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    I see.
    Now the program launches and msgbox displays a string containing path to my Project1.abc file

    I should be able to use this to launch my program via Project1.abc and preload the listbox...
  8. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    OK, so perhaps I'm just having one of those days, and I'm just not absorbing what I'm told but...

    In my test project (code above)
    I have:


    Private Sub Form_Load()
    Command1.Caption =...
  9. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    OK, so I've did some reading on command line arguments when making an exe

    I think I understand the purpose of these, and how to use them.

    But before I get myself going down the wrong path, I...
  10. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    OK so this is much simpler than I was expecting.

    I now have it that MyProgram.exe can be launched with Project1.abc using Windows File Association

    I was thinking that I had to go through hoops...
  11. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    Yes I looked at the link you posted.

    I understand the term file association
    I understand that on my computer, I can change a .jpg file to open with Paint, Paint3D, or Photos, or whatever
    This...
  12. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    So I will have to register my file type (ie .abc) somehow in the Registry?
    And also make sure .abc file type is unique?

    I still don't get how my program MyProgram.exe is going to load the data...
  13. Replies
    30
    Views
    622

    Re: Launching a Program From DAT File

    I guess I wasn't clear.

    I make an executable of my program, lets say called MyProgram.exe
    I make a data file that is used by MyProgram.exe, lets say called Project1.abc

    I want to double click...
  14. Replies
    30
    Views
    622

    Launching a Program From DAT File

    How would I go about launching my program from say a DAT file.

    With say Excel, there is an Excel.exe and a XXX.xls file

    Double clicking Excel.exe (or a shortcut to it) launches Excel, and a...
  15. Replies
    13
    Views
    465

    Re: [RESOLVED] DX9 D3D Ring (Torus) Mesh

    I am using quaternions in my project.

    I had put this project aside a number of years back, because even when I changed to quaternions, the gimbal lock problem persisted.

    Perhaps I had done...
  16. Replies
    13
    Views
    465

    Re: [RESOLVED] DX9 D3D Ring (Torus) Mesh

    Elroy
    OK

    I was wanting to see how you handled rotation, and see if I could correct my gimbal lock problem, in my rather simplistic 3D rotation program.
    It does not use DirectX however.

    I will...
  17. Replies
    13
    Views
    465

    Re: [RESOLVED] DX9 D3D Ring (Torus) Mesh

    Just curios if this project is in the Code Bank?
  18. Replies
    20
    Views
    693

    Re: Exiting a Nested For/Next Loop

    I agree 100%
    I guess because I've read so many times don't use it I feel compelled to get rid of them

    kfcSmitty :D

    Thanks all, for help and advice.
  19. Replies
    20
    Views
    693

    Re: Exiting a Nested For/Next Loop

    OK thanks all

    I used the suggestion of using a Boolean

    Below code gets rid of GoTo and gets rid of manipulating For... Next variables inside the loop


    Private Sub Command1_Click()

    ...
  20. Replies
    20
    Views
    693

    Re: Exiting a Nested For/Next Loop

    OK thanks.

    Just a question as to why Don't manipulate a For-Variable inside the loop! ?
  21. Replies
    20
    Views
    693

    [RESOLVED] Exiting a Nested For/Next Loop

    Hello,

    What is the proper way to exit a nested For/Next loop.

    I have code in Command1_Click below that works with a GoTo statement.

    I want to get rid of the GoTo, so I re-coded in...
  22. Replies
    28
    Views
    1,837

    Re: looking to hire best vb6 coder on this forum

    Converts to 150K CAD or 115K USD

    That's not bad money.
  23. Replies
    12
    Views
    541

    Re: GetVolumeInformation

    OK thanks.

    I was testing DriveSerial2.2 on my work setup (not working there) and forgot to bring it home to test on my Windows7 home system.

    If I'm feeling energetic this weekend, I will drive...
  24. Replies
    12
    Views
    541

    Re: GetVolumeInformation

    I see.

    All the more reason to get DriveSerial2.2 working on my Win10 laptop.
  25. Replies
    12
    Views
    541

    Re: GetVolumeInformation

    I have downloaded dilettante's latest code (DriveSerial2.2) in Post#25
    and updated with his latest DriveInfo.cls in Post#29
    and increased buffer size as suggested in Post#36

    This code does not...
  26. Replies
    12
    Views
    541

    Re: GetVolumeInformation

    OK thanks,

    Code in Post #13 does not work on my system (I get CreateFile error 5 error)

    Code in Post #9 does work however.

    In Post #13 dilettante states
  27. Replies
    12
    Views
    541

    Re: GetVolumeInformation

    OK thanks,

    After I search the exact meaning of these two terms, you are right...
    I am actually after hardware device serial number.

    I will search for code to retrieve this.
  28. Replies
    12
    Views
    541

    GetVolumeInformation

    Hello,

    When calling the function GetVolumeInformation, will the value returned in the lpVolumeSerialNumber parameter be a Long?

    I'm confused because MSDN Docs say this is a pointer to a...
  29. Replies
    7
    Views
    498

    Re: Inexact floating point representations

    OK thanks guys
  30. Replies
    7
    Views
    498

    Inexact floating point representations

    What is the correct way to deal with this problem?

    I have this line of code:

    If thisMeasureTime <> measureTime Then

    In my mind as it appears in my code I am expecting both variables to be 1...
  31. Replies
    20
    Views
    1,040

    Re: loading UDT is slow

    In my program, I too have to load a large UDT array, and did it exactly as ChrisE shows

    Get #nFileNum, , arr 'load in one big gulp

    This is extremely fast, but I reverted back to the...
  32. Replies
    14
    Views
    579

    Re: Help With Algorithm

    passel
    You are good! :)

    That is exactly what I am working on.
    And it is when I came to dotted notes that this issue came up.

    I have the notes playing correctly, but positioning them correctly...
  33. Replies
    14
    Views
    579

    Re: Help With Algorithm

    All testing I've done seems to work with the exception of data sets containing whole numbers


    aRationalNumbers(1) = 2
    aRationalNumbers(2) = 2
    aRationalNumbers(3) = 4
    aRationalNumbers(4) = 4...
  34. Replies
    14
    Views
    579

    Re: Help With Algorithm

    2/16 is OK to be simplified as 1/8 and therefor resultant denominator is 8
  35. Replies
    14
    Views
    579

    Re: Help With Algorithm

    Elroy
    With regards to your question about non-repeating decimals,
    my first answer is that my data will always be a result of denominators being a power of 2

    I will have to think about this more...
  36. Replies
    14
    Views
    579

    Re: Help With Algorithm

    OK thanks Arnoutdv

    I will see if that helps.
  37. Replies
    14
    Views
    579

    Help With Algorithm

    Hello,

    I have an array of rational numbers, and I need to
    find the smallest unit fraction derived from these numbers.

    Below demonstrates what I want to do:


    A R R A Y ...
  38. Replies
    2
    Views
    275

    Re: TextBox Change Event

    That works nicely, thanks!
  39. Replies
    2
    Views
    275

    [RESOLVED] TextBox Change Event

    Hello,

    Is it possible to distinguish between a TextBox Change event caused by typing in the textbox and changing .text via code?



    Option Explicit

    Private Sub Command1_Click()
    Static...
  40. Re: RTrim not working the way I expect

    OK thanks DataMiser and OptionBase1

    Both solutions work for me.
Results 1 to 40 of 235
Page 1 of 6 1 2 3 4



Featured


Click Here to Expand Forum to Full Width