Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 22.49 seconds.

  1. Replies
    18
    Views
    484

    Re: Extended ascii characters

    "Extended ASCII characters"

    Those words make me think of the old DOS days, or maybe even the TRS-80 days, where we actually had such a thing ... block/character graphics and a few extra...
  2. Replies
    24
    Views
    486

    Re: Different Boggle Question

    Wait, you want to do it backwards? Type in a word, and then see if the code can find it?

    Ok, what if the word has duplicate letters, like maybe "boot" (two "o"s). Does the Boggle board also have...
  3. Replies
    24
    Views
    486

    Re: Different Boggle Question

    Complicates things a bit in code....(i was scoring each word that each player would have told me)....errrrrrr[/QUOTE]

    If it were me, I'd just have a "master" collection, and also a collection for...
  4. Replies
    24
    Views
    486

    Re: Different Boggle Question

    Diagonal is a candidate? I didn't realize that. Here's a modified function to consider diagonal as adjacent:



    Option Explicit

    Dim bbSel(1 To 4, 1 To 4) As Boolean

    Private Function...
  5. Replies
    24
    Views
    486

    Re: Different Boggle Question

    I don't know the rules to this thing, but if you can make the same word twice, but using a different square combination, I'd probably make a Collection of either the bbSel(1 To 4, 1 To 4) arrays, or...
  6. Replies
    24
    Views
    486

    Re: Different Boggle Question

    Ok, here's an idea I threw together. I didn't test it though as I didn't put together all your textboxes.

    I assumed your textbox array was from 1 to 16 though. If it's 0 to 15, things will need...
  7. Replies
    24
    Views
    486

    Re: Different Boggle Question

    Ok, just brainstorming/thinking about this thing ... if it were me, I'd probably start with a 4x4 two-dimensional array of booleans. That array would represent letters selected/not-selected.

    And...
  8. Replies
    6
    Views
    251

    Re: change position of tab in SSTAB

    I've never tried changing tab positions ... without playing around, not sure if that can be done or not.

    But, I do know how to change which tab a control is on (during runtime). With that...
  9. Replies
    13
    Views
    411

    Re: Remove Duplicate Entries From UDT Array

    My first thought here is (if you're allowed to sort the UDT array) to sort the array on the UDT field for which you're trying to eliminate dupes, and then build a new (dupes eliminated) array. It'd...
  10. Replies
    21
    Views
    498

    Re: Read background color of a bitmap

    I'm not sure if you're talking about "Shapes" or "Charts". But, in a sense, I guess it doesn't matter. Either of those copied to the clipboard will have one or more "image" types in the clipboard,...
  11. Replies
    21
    Views
    498

    Re: Read background color of a bitmap

    I just read this thread, and I've got the same questions, primarily two:


    What's the goal? If you outline what you're actually trying to do, people can probably come up with ideas to get you...
  12. Re: [RESOLVED] Sporatic err 380, Invalid Property Value, but only in compiled exe

    Yes, I'm aware. :)

    I think all I (we) were saying is that the clicking of cancel button (that can click because of DoEvents) should just stop calling the Fortran DLL when it's clicked. I'm...
  13. Re: Help making a basic [re sizeable] UC at runtime

    Off the top of my head, it seems you just need to have a UserControl_Resize event with code in it that repositions (and resizes) all the sub-controls on your user control. Personally (short of...
  14. Re: Sporatic err 380, Invalid Property Value, but only in compiled exe

    Wait, if there's not some kind of callback from this long-running Fortran code, how is your DoEvents ever getting executed in the first place?

    ------

    Also, what's the deal with the RTB? How...
  15. Re: Sporatic err 380, Invalid Property Value, but only in compiled exe

    Also, as another thought, you might want to post your long running procedure. There are quite a few folks around here who can advise on how to make these things faster.

    Just one tip right off the...
  16. Re: Sporatic err 380, Invalid Property Value, but only in compiled exe

    I've never heard of this. Sure, if an app "holds" the thread for a long period of time, Windows might think it's hung, but the app is still given its appropriate time-slices, and it's still...
  17. Thread: decimal point

    by Elroy
    Replies
    5
    Views
    304

    Re: decimal point

    This is a pretty hard-core way to fix it, but I bet it does, as your users might not like you changing their regional settings. Just a call to ForceSystemDecimalToPeriod, and I bet it's fixed.


    ...
  18. Replies
    12
    Views
    604

    Re: RtlToFromString - Number Bases

    Here's one of the scenarios I was imagining. When you have a Variant as an incoming argument, that particular Variant argument declaration is often used so that many different data types can be...
  19. Replies
    12
    Views
    604

    Re: RtlToFromString - Number Bases

    It's just something I thought of when reading your code. I thought I had seen the VB_BYREF flag set in the past on intrinsic numeric types, but I'm not sure I'm up for trying to make an example. I...
  20. Replies
    19
    Views
    1,244

    Re: we almost got the source to VB6

    And the fifth half is getting the source to all the standard OCX files that come with the core VB6 IDE, because, for me, the first thing I'd want to see is a 64-bit version of VB6.

    EDIT: Oh yeah,...
  21. Replies
    12
    Views
    604

    Re: RtlToFromString - Number Bases

    Hmmm, ok, I wasn't talking about how the Variant was passed. I suspect it makes little difference whether it was passed ByVal or ByRef. However, within the Variant's 16 bytes, there's another...
  22. Replies
    41
    Views
    2,639

    Re: Planet Source Code Jumbo Resource CDs

    Again, please see post #31 above.
  23. Replies
    12
    Views
    604

    Re: RtlToFromString - Number Bases

    This is pretty cool. I've written pieces of this in the past, but never gathered it all into one function. Also, just perusing the code, I had a couple of thoughts. I primarily focused on the...
  24. Re: Automatically Load most recent project at startup?

    The "recent files" on the IDE's Menu --> File also works just fine. That's the way most other programs do it, even the most recent versions of Word, Excel, etc.

    Darkbob, I just have one project...
  25. Replies
    58
    Views
    1,571

    Re: need 2 decimal places

    I'm just going to second what LaVolpe said. Put Option Explicit at the very top of every module in your project. That's pretty much mandatory to be a respected VB6 programmer. You can tell the VB6...
  26. Replies
    58
    Views
    1,571

    Re: need 2 decimal places

    I haven't studied your code in great detail. And that's because it looks like a bit of a mess, and also, it's not in the
    the code lines tags. Those are easily placed around your code by using the...
  27. Re: vb6.exe crashes with VC++ runtime error R6025 'pure virtual function call'

    Personally, on this one, I'd have to say it's some third-party custom control you have in the project. On the VB6 IDE menu, those are found under Project --> Components. And then, you have to...
  28. Re: Problem with combo box with its Style property set to "0 - Dropdown combo"

    Dil, is that addressed to me or Ilia? I'm not quite sure.

    If it's addressed to me, you might be confounding two separate concepts I discussed above:

    An option (and a custom UC) that allows...
  29. Re: Problem with combo box with its Style property set to "0 - Dropdown combo"

    Personally, it would never dawn on me to store the cbo1.ListIndex in the database. I'd always store the cbo1.Text in the database.

    There are at least two reasons for that: 1) If you add more...
  30. Replies
    41
    Views
    2,639

    Re: Planet Source Code Jumbo Resource CDs

    Yeah, each time I upload, I just test by logging into Chrome in incognito mode (without logging into that ElroySully account), and try downloading them. It always gives me that warning about the...
  31. Replies
    11
    Views
    445

    Re: Writing to Excel

    Ok, my mistake. If all the variables are scoped within the function, then you should be able to use the same names. Also, for object variables, you can, but there's no need to set them to...
  32. Replies
    11
    Views
    445

    Re: Writing to Excel

    Ahh, ok. So, I assume your object variables are scoped at least at the module level (if not global to the project).

    So, when simultaneously manipulating two workbooks (i.e., Excel files), you...
  33. Replies
    11
    Views
    445

    Re: Writing to Excel

    Also, this code ...


    Set ExcelSheet = ExcelWorkbook.Worksheets(1)

    'Add Today's Data
    With Sheets("HistoryH")


    ... looks very strange to me.
  34. Thread: Thanks....

    by Elroy
    Replies
    19
    Views
    855

    Re: Thanks....

    Mine too. Sam, please let us know that you're ok.
  35. Replies
    41
    Views
    2,639

    Re: Planet Source Code Jumbo Resource CDs

    Ok, I really want to be nice and respectful about this. But I think it'd be best if people just quit posting links to anything in this CodeBank thread.

    I've worked really hard to make sure there...
  36. Re: Problem with combo box with its Style property set to "0 - Dropdown combo"

    Ilia,

    Are you possibly wanting it to be a "2 - Dropdown list"? This limits you to the items in the list, which also guarantees that ListIndex reflects the item selected from the list, even when...
  37. Re: What good is a command button's Value property?

    Personally, I'll admit that I sometimes do that. However, if I've got a large body of code in an event procedure that's used in a few different places, I'd much prefer to pull that out and make a...
  38. Re: What good is a command button's Value property?

    Here's a way I often use it. In several places, I might display a list of items, with each of these items representing several fields that are editable. So, there winds up being two ways to...
  39. Thread: ADO on Lan

    by Elroy
    Replies
    18
    Views
    867

    Re: ADO on Lan

    Yes! I don't have any head-to-head comparisons of file-based vs SQL server speeds over a LAN, but I'd have to believe that the SQL server would be faster. Basically, that's what they're designed...
  40. Thread: ADO on Lan

    by Elroy
    Replies
    18
    Views
    867

    Re: ADO on Lan

    I use the DAO over LANs all the time, and it works quite well.

    And yes, I don't use "select *". In fact, for the most part, I just use the regular DAO stuff (Seek, MoveFirst, MoveNext, FindFirst,...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width