|
-
May 15th, 2007, 10:03 AM
#1
Thread Starter
Frenzied Member
Vs2005
Where are there no control arrays in VB2005
-
May 15th, 2007, 10:04 AM
#2
Member
Re: Vs2005
 Originally Posted by I_Love_My_Vans
Where are there no control arrays in VB2005
Gawd !! I feel doozzy ..........
-
May 15th, 2007, 10:05 AM
#3
Re: Vs2005
Seek and ye shall find.
-
May 15th, 2007, 10:05 AM
#4
Thread Starter
Frenzied Member
Re: Vs2005
Come on! I would like to understandd why
-
May 15th, 2007, 10:05 AM
#5
Re: Vs2005
Because you can do this...
Code:
Dim C0ntrolArr@yz As New List(Of Control)
ControlArrayz.Add(new Button)
ControlArrayz.Add(new Button)
-
May 15th, 2007, 01:32 PM
#6
Re: Vs2005
Error: "ControlArrayz" is not defined for type "list".
-
May 15th, 2007, 01:40 PM
#7
Re: Vs2005
your compiler must've got stuck somewhere during a timeshift
-
May 15th, 2007, 01:55 PM
#8
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
May 15th, 2007, 02:21 PM
#9
Hyperactive Member
Re: Vs2005
 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
-
May 15th, 2007, 02:31 PM
#10
Re: Vs2005
If you want quick and dirty, use a scripting language.
-
May 15th, 2007, 02:56 PM
#11
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.
-
May 15th, 2007, 10:58 PM
#12
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|