Search:

Type: Posts; User: Elroy

Page 1 of 13 1 2 3 4

Search: Search took 0.14 seconds.

  1. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    Ahh, Trick, you are correct as usual. :)



    Option Explicit

    Private Sub Form_Load()
    Dim c As New Collection

    c.Add 100
  2. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    Ahhh, I can test that.
  3. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    I figured it out.

    These IEnumVariant variables and the Variant Array index variables are also procedure scoped variables. As such, they get cleaned up when the procedure exits (just like all...
  4. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    Ok, I've got another related question.

    When iterating a Collection, we've established that it uses an IEnumVariant mechanism to keep track of iterations. However, we've still got several ways to...
  5. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    Hmmm, ok. Good to know. :)
  6. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    Hi Trick. I assume you're talking about arrays of intrinsic variables, excluding Variants (that is, String, Byte, Boolean, Integer, Long, Single, Double, Currency, Date). Yeah, we've got no way to...
  7. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    Thank you, Trick & Wqweto. That explains it. It seems my last "guess" was fairly close, "another possibility is that an iteration loop sets up its own internal (invisible) variable/header and keeps...
  8. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    ..

    I've been thinking about it, and I still don't "get" it. I mean, we're not talking about different instantiations. We're talking about different references to the same object (the...
  9. Replies
    10
    Views
    235

    Re: How Do I Draw Translucent Shapes ?

    Translucency is a tricky thing. Even in PhotoShop or PSP, there are many methods for merging two images/layers. You might use the alpha channel RGBA, but that's sort of a separate issue, as you can...
  10. Replies
    153
    Views
    2,477

    Re: Is this justice???

    OMG, I've (sort of) done that too. I have a bad habit of leaving my keys in the car when I get gas. One of my cars is a little Ford Ranger, and it has little rockers on the door-armrests for...
  11. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    Nope, it's not using the iteration variable for the pointer. Proof:

    (Same Class1 from above.)

    In a Form1:


    Option Explicit

    Private Sub Form_Load()
  12. Replies
    19
    Views
    314

    Re: Nested Collection Iterations

    Hmmm, ok, it seems to work just fine. My test....

    For a quick class (Class1):


    Option Explicit

    Public s As String
  13. Replies
    19
    Views
    314

    Nested Collection Iterations

    Ok, I've got a collection of objects I'm iterating in a loop. Specifically, they're Node objects (TreeView).

    Now, inside my iteration loop, I'd like to pass the whole collection to another...
  14. Re: [RESOLVED] Creating subset Collection of objects

    Niya, your IMs appear to be full again. I was going to thank you for your last IM, but I couldn't send it. So, thank you.
  15. Re: [RESOLVED] Creating subset Collection of objects

    Ok, I'm done. I could go on, but it's really not where I want my head to be. So, for anyone who wants to continue debating difference (advantages, disadvantages, bloat, etc) between VB6 and .NET,...
  16. Re: [RESOLVED] Creating subset Collection of objects

    In my somewhat repeated dabblings in .NET, I've also noticed that ... it prefers to have everything as an object.

    To my way of thinking, that's another example of how .NET bloats everything. If I...
  17. Re: [RESOLVED] Creating subset Collection of objects

    haha, beat'cha to it. :p

    EDIT: Actually, I'm not sure I did. My modify time is 8:46 and your post time is 8:40. I must have hung onto editing my post too long. :)
  18. Replies
    153
    Views
    2,477

    Re: Is this justice???

    OMG, I've only done that once, but it was recent. I was on a trip (obviously drove), and was out getting some dinner. I've got a dongle and was pushing it, hearing my car beep right there. I was...
  19. Re: [RESOLVED] Creating subset Collection of objects

    Well, if we really wanted to, it's easy enough to "fix" in VB6 code.

    For a Class1:


    Option Explicit

    Public str As String
  20. Re: Instantiate internal class object with name in string

    Hey smkperu, how about starting your own thread instead of hijacking mine from 4+ years ago???

    Also, I'm not sure Firehacker spends much time around here. You'd probably be better off targeting...
  21. Re: Creating subset Collection of objects

    I use collections for all kinds of things, but yeah, the TypeName() of the items is typically all the same.

    I just knew you couldn't iterate them with native types, for instance...



    Option...
  22. Re: Creating subset Collection of objects

    Ahhh, that's a nice way to explain it ... very clear and sensible. :)
  23. Re: Creating subset Collection of objects

    :) Yeah, I understand ... that's basically what I was doing. But figuring out that I can iterate with a class (rather than a variant) just solves all kinds of things. It vastly simplifies things,...
  24. Re: Creating subset Collection of objects

    Thanks for the tip. However, figuring out that I can use a variable declared with a specific class to iterate my collections is solving all of these problems.

    This one really is resolved now. :)
  25. Re: Creating subset Collection of objects

    Thanks Niya. That's what I was thinking/hoping.

    Also, I just learned (and tested) something else I didn't know. You can use a specific class (not a Variant) to iterate a Collection so long as...
  26. Re: [RESOLVED] Treeview (VB6 version) ... detecting hovering/underlining

    haha, yeah, like I said, there's a ton of them. :)
  27. Re: Creating subset Collection of objects

    I was having some other problems too, specifically passing a variant with a node, when the called procedure wanted an actual node. It wasn't letting me do that.

    So, I just wrote the following to...
  28. Re: Creating subset Collection of objects

    That's my whole point. Each item of a collection has two pieces (ignoring all the internal pointer), a Variant for the data, and a String for the key. And I'm not using the key so it's just a...
  29. [RESOLVED] Creating subset Collection of objects

    Basically, my question is ... when we add an item to a collection that's a Variant containing an object, are we:

    1) Adding the object to the Collection's internal Variant? or...
    2) Nesting our...
  30. Re: I want to disable the action of ctrl + alt + del ??

    This stuff (even if you figure out an API way) probably isn't going to work unless you've got Windows Pro and you've got local admin rights. And, if you've got that stuff, why not just use the...
  31. Re: [RESOLVED] Treeview (VB6 version) ... detecting hovering/underlining

    haha, yeah, I didn't say it wasn't complex. And yeah, I've already got subclassing procedures for the ListView, just not one that does precisely what DaveDavis wanted. :) But I'm quite sure it's...
  32. Replies
    5
    Views
    189

    Re: Message Pump Constant Names

    I think I've got most of those already. However, that last link is nice, in that it gets into more specifics, including contextual duplicates. I might have to work those into my existing...
  33. Replies
    5
    Views
    189

    Re: Message Pump Constant Names

    Yeah, I thought about that as I was writing the OP. However, it'd be easy enough to supply a "context" argument, and just letting it default to the standard ones if not supplied.
  34. Replies
    10
    Views
    214

    Re: numerical analysis

    I think functions DO grow on the interwebbies.


    https://www.youtube.com/watch?v=Gx3310tUhVw

    :p
  35. Replies
    5
    Views
    189

    Message Pump Constant Names

    I wish there was some Windows DLL we could call and get the name for any/every constant that comes through the message pump.

    I've got a huge Select Case statement with many of them, but I'm always...
  36. Re: [RESOLVED] Treeview (VB6 version) ... detecting hovering/underlining

    You'll have to put all of that into the ListView's MouseMove event (similar to what Fafalone suggested above), so it's not quite as good as subclassing and making an explicit event. But it's all...
  37. Re: [RESOLVED] Treeview (VB6 version) ... detecting hovering/underlining

    In some ways, the ListView isn't as complex as the TreeView. Also, I tend to almost always use the ListView in "Report" mode. As such, there's no hierarchy to it.

    When used like this, I have the...
  38. Replies
    6
    Views
    150

    Re: TreeView Node References

    What if you have multiple root nodes? I try to not use nesting where it's not needed. It also takes more horizontal screen/form space. But anyway, yeah, it's a good point that the nodes don't...
  39. Re: [RESOLVED] Treeview (VB6 version) ... detecting hovering/underlining

    If you're not running my Persistent Debug Window program, then just comment out those two lines of code. These:



    DebugPrint "Item no longer 'hot' as mouse is off of treeview."



    ...
  40. Replies
    6
    Views
    150

    TreeView Node References

    I know I'm correct about this, but I just wanted to say it out-loud anyway.

    I've got a TreeView to which I add several nodes. (Nesting of nodes, parent/child, really doesn't matter for this.)
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width