|
-
Sep 13th, 2005, 05:41 PM
#1
Thread Starter
No place like 127.0.0.1
What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
This question goes out to Visal Basic 6 novices and the experts.
If you could change something about Visual Basic 6 what would it be?
Novices - You know the things that annoy you right from the start that an expert might have gotten used to and forgotten.
Experts - You have detailed knowlege of the language and know what is lacking and what should be changed.
I am collecting this information to help in the development of LightFusion™. It is a programming lanuage being created by VBF's very own Jacob Roman, Penagate, chemicalNova and myself (eyeRmonkey). Any and all input you have will help us a lot.
Last edited by eyeRmonkey; Sep 13th, 2005 at 05:46 PM.
-
Sep 13th, 2005, 05:53 PM
#2
Fanatic Member
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
the mid function, sometimes it works for me then other times it doesnt!!
make up its mind...
-
Sep 13th, 2005, 05:59 PM
#3
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
Structured error handling!!!
-
Sep 13th, 2005, 06:03 PM
#4
Fanatic Member
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
yeah!! when you get an error, you should be able to click "fix" and the program will fix what you did wrong! (if it is not a mathematical error or something like that)
-
Sep 13th, 2005, 06:04 PM
#5
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
Agreed. Try, Catch and Finally. Worth adding IMO.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Sep 13th, 2005, 06:05 PM
#6
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
Slow functions such as DoEvents need a good kick in speed. It's a good thing we are gonna be using SIMD assembly!
-
Sep 13th, 2005, 06:06 PM
#7
Thread Starter
No place like 127.0.0.1
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by Joacim Andersson
Structured error handling!!!
Could you give an example of some made-up VB6 code of how error handling should work in your mind?
-
Sep 13th, 2005, 06:08 PM
#8
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
VB Code:
Try
'Do something that might raise an error
Catch ' or Except
'Whoops an error occured
End Try
-
Sep 13th, 2005, 06:08 PM
#9
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
VB Code:
Try (0 / 0):
MsgBox "Erm.."
Catch:
MsgBox "Woot! Handled"
End Try
VB.NET has something like this I believe. Well, it does have try...catch..finally, but I'm not sure of the syntax.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Sep 13th, 2005, 06:21 PM
#10
Thread Starter
No place like 127.0.0.1
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
I like that idea a lot. I don't know much about VB.NET so I didn't know about that.
Thanks for the input JA and Chem.
-
Sep 13th, 2005, 06:22 PM
#11
Thread Starter
No place like 127.0.0.1
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by paralinx
yeah!! when you get an error, you should be able to click "fix" and the program will fix what you did wrong! (if it is not a mathematical error or something like that)
The compiler/IDE can't read your mind. Can you give an example of where it could "fix" it for you?
-
Sep 13th, 2005, 06:24 PM
#12
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
"Click a fix button".... LOL! Why not add a voice interface where you simply need to say "Write program" and it does it for you.
-
Sep 13th, 2005, 06:29 PM
#13
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
Computers aren't psychic so I don't think that is such a good idea. As for VB6, it would have been nice if MS made it to where you can use inline assembly in VB, like you could with C++. But ThunderVB did it for us (found in PSC). So LightFusion is definitely gonna support assembly.
-
Sep 13th, 2005, 06:30 PM
#14
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by Joacim Andersson
"Click a fix button".... LOL! Why not add a voice interface where you simply need to say "Write program" and it does it for you. 
Done. Pfft. You think I actually write my programs?
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Sep 13th, 2005, 06:32 PM
#15
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by paralinx
the mid function, sometimes it works for me then other times it doesnt!!
make up its mind...
Can you post an example where the MID Function doesn't work?
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Sep 13th, 2005, 07:01 PM
#16
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
For the IDE.. MZTools would be built in as standard, as would automatic indenting of Loops etc.
I also like the idea of .Net where you can "hide" code blocks.
-
Sep 13th, 2005, 07:06 PM
#17
Thread Starter
No place like 127.0.0.1
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by si_the_geek
For the IDE.. MZTools would be built in as standard, as would automatic indenting of Loops etc.
I also like the idea of .Net where you can "hide" code blocks.
Thanks for your suggestions!
Can you post a screen shot of how to hide code blocks in .NET? I don't have it and have never used it.
-
Sep 13th, 2005, 07:12 PM
#18
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
I don't have it either 
I think you need to put some sort of comment for the start/end of the block, then you get + or - signs next to them to expand/shrink it.
-
Sep 13th, 2005, 07:15 PM
#19
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
It's called "code folding" and you can do it on any block of code like any Sub or Function for example. I currently doesn't have VS.Net installed on the computer I'm currently sitting behind but you can look at some of the screen shots for SharpDevelop here. See the little [-] sign where you can fold (or collapse) the code just like in a treeview.
-
Sep 13th, 2005, 07:17 PM
#20
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
I already had that idea for LightFusion for a couple days now. So consider it on my hit list.
-
Sep 13th, 2005, 07:18 PM
#21
-
Sep 13th, 2005, 07:30 PM
#22
Hyperactive Member
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
I want to be able to comment entire blocks of code
it is annoying putting the comment sign on every line of code that you dont want to run during a test, C++, and actionscript among most others allow you to use /* and */ to comment blocks
also better file manipulation without APIs
MakeSureDirectoryPathExists goes into %90 of the projects i make that do anything with files/folders
and copyfile basically freezes the computer if it is a large file
Last edited by notquitehere188; Sep 13th, 2005 at 07:37 PM.
It's not just Good, It's Good enough!
Spelling Eludes Me
-
Sep 13th, 2005, 07:33 PM
#23
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
That's a feature in VB.NET but we are gonna use the C++ approach to block comments in using /* */ for now until we think otherwise.
-
Sep 13th, 2005, 07:37 PM
#24
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by notquitehere188
I want to be able to comment entire blocks of code
it is annoying putting the comment sign on every line of code that you dont want to run during a test
This can be done in VB6 as well. Just add the Edit toolbar to the VB IDE.
-
Sep 13th, 2005, 07:37 PM
#25
Fanatic Member
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by Mark Gambo
Can you post an example where the MID Function doesn't work?
I gave up on it and used InStr...
thanks anyway tho
-
Sep 13th, 2005, 07:40 PM
#26
Addicted Member
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
I do agree. with the last post....
I'm actually quite fluent in the PHP comments.
// would do one line
/* whole stretch
of liney code */
that would be rad.
-
Sep 13th, 2005, 08:31 PM
#27
Thread Starter
No place like 127.0.0.1
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
PHP comments = C++ comments = JavaScript comments = LightFusion™ comments
-
Sep 13th, 2005, 09:20 PM
#28
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
Pascal uses (* *)
-
Sep 14th, 2005, 12:22 AM
#29
Thread Starter
No place like 127.0.0.1
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by Jacob Roman
Also, a ListView of possible functions to use will also be done with the assembly.
Here is what I mean:
What program is that?
-
Sep 14th, 2005, 01:55 AM
#30
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by si_the_geek
For the IDE.. MZTools would be built in as standard, as would automatic indenting of Loops etc.
I also like the idea of .Net where you can "hide" code blocks.
i think you are referring to the #Region keyword used in .net
this will split the code into regions within the IDE allowing you to show/hide each region by clicking on the +/- box.
-
Sep 14th, 2005, 01:58 AM
#31
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
Try/Catch/Finally example:
VB Code:
Try
'code that might generate an error
Catch ex As WebException 'catch errors from classes that give a WebException
Messagebox.Show(ex.Message)
Catch ex As Exception
Messagebox.Show(ex.Message) 'catch all other errors
Finally
'code that will always be executed
End Try
-
Sep 14th, 2005, 02:05 AM
#32
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
I would have changed it to C syntax..
- ØØ -
-
Sep 14th, 2005, 02:17 AM
#33
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
-Bound Checkboxes and Radiobuttons
-A build in way to backpoint at a parent class without having to worry about circular references keeping an object alive forever.
-A better Isnumeric function
-Api complient variable set.
-Pointers
- Adding 1 to a var with ++ (Like C++ has)
Need I continue?
 why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
for every question you ask provide an answer on another thread.
-
Sep 14th, 2005, 02:21 AM
#34
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
if i could change anything in vb6 i would make it vb.net
-
Sep 14th, 2005, 02:30 AM
#35
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by notquitehere188
I want to be able to comment entire blocks of code
it is annoying putting the comment sign on every line of code that you dont want to run during a test, C++, and actionscript among most others allow you to use /* and */ to comment blocks
If you have enabled the Edit (Right click then select Edit) in your Toolbar of your IDE then you could instantly comment entire blocks of code. 
Sorry Joacim, didn't read your post in #24...
-
Sep 14th, 2005, 02:31 AM
#36
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
I am too lazy to read all post but I wish a better memory management...
-
Sep 14th, 2005, 02:46 AM
#37
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
And how about a copy-paste installation of an EXE?
-
Sep 14th, 2005, 03:37 AM
#38
Frenzied Member
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
What would I change?
- Real stand-alone applications (no MSVBVM60.DLL)
- Memory handling by the coder not VB.
- Structured error handling (not Try/Catch :x)
- Option Explicit hard coded into the IDE 
- Increased Stack space for recursive code
- Ability to dump the stack.
- Replace all the $ functions (Dir$, Mid$) to the normal ones and remove the variant return ones.
- Banish Variant.
- Support for Std C callback functions without the hassle
- LoadObject/CreateObject that actually allows enumeration of it's functions without the hassle
- CallByName that actually works decently without a variant array :X
- Array 2 Array copy actions and merge and such. In other words; Array functions.
- Safe Multithreading support with extension support for COM Objects.
- Memory Pool support within multithreads (if the multithreading is done outside own scope (COM))
That's about it I think.
VB.NET in a VB6 shell without all the DHTML crap would work (and the 26MB framework :x)
-
Sep 14th, 2005, 03:38 AM
#39
Fanatic Member
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
Change the compliation process to be on the fly like many of the Java editors. Having to wait 10 - 15 minutes for a project to compile is extremely irritating
 Life is one big rock tune 
-
Sep 14th, 2005, 05:59 AM
#40
Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)
 Originally Posted by eyeRmonkey
What program is that?
That's ThunderVB, which is an addin for VB6. You can get it at Planet Source Code.
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
|