Results 1 to 12 of 12

Thread: Vs2005

  1. #1

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Vs2005

    Where are there no control arrays in VB2005

  2. #2
    Member chocoloco's Avatar
    Join Date
    Mar 2006
    Posts
    42

    Re: Vs2005

    Quote Originally Posted by I_Love_My_Vans
    Where are there no control arrays in VB2005
    Gawd !! I feel doozzy ..........

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Vs2005

    Seek and ye shall find.

  4. #4

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Vs2005

    Come on! I would like to understandd why

  5. #5
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: Vs2005

    Because you can do this...

    Code:
    Dim C0ntrolArr@yz As New List(Of Control)
    ControlArrayz.Add(new Button)
    ControlArrayz.Add(new Button)

  6. #6
    Banned timeshifter's Avatar
    Join Date
    Mar 2004
    Location
    at my desk
    Posts
    2,465

    Re: Vs2005

    Error: "ControlArrayz" is not defined for type "list".

  7. #7
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: Vs2005

    your compiler must've got stuck somewhere during a timeshift

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Vs2005

    Hey Phil good to see you back

    So thats what that disturbance in the Force was.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Hyperactive Member capsulecorpjx's Avatar
    Join Date
    May 2005
    Location
    Renton, WA
    Posts
    288

    Re: Vs2005

    Quote Originally Posted by Phill64
    your compiler must've got stuck somewhere during a timeshift
    I don't understand the reasoning behind not supporting control arrays anymore. I kinda understand not supporting variants, but even there, jeez what ever happened to easier, quick and dirty programming? Most of the small business apps are not hardware intensive. Unless variants and control arrays somehow leak memory when an app is kept open too long, I see no reason for removing them.

    If I wanted to program in C++ or assembly, where high level stuff like that is not allowed, I'd do so, without needing to go through the .NET or Java JIT compiler.
    "I like to run on treadmills, because at least I know I'm getting nowhere."
    - Me

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Vs2005

    If you want quick and dirty, use a scripting language.

  11. #11
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Vs2005

    To be more accurate, VB6 had no control arrays. It had a hideous amalgamation of ugliness and grotesqueness.
    I don't live here any more.

  12. #12
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: Vs2005

    @Rob: Hey Rob, I know my visits seem to be lots at once then a big break don't they? good to see you still ontop of the charts by a milestone

    @capsule: It's just a shock to people at first, it is better from a logic standpoint, which will make it easier for users starting out (its only harder for you because you learnt the old, illogical ways), as with all vb6->vb.net changeovers.

    And you're not stopped from planting controls at design time and making an array from them... you can still do it, plant a bunch of buttons on your form button1 to button10 and on form load or better yet, in your designer startup code populate an array, .Add(Button1), .Add(Button2)... better yet.. write yourself a function that For Eaches all your cotnrols on the form and searches for those whose name start with "Button" or whatever and add them to the array, reuse your function in all future apps..

    It's just a changeover problem for old users.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width