Page 1 of 2 12 LastLast
Results 1 to 40 of 70

Thread: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

  1. #1

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    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.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  2. #2
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    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...

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Structured error handling!!!

  4. #4
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    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)

  5. #5
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    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

  6. #6
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    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!

  7. #7

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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?
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    VB Code:
    1. Try
    2.     'Do something that might raise an error
    3. Catch ' or Except
    4.     'Whoops an error occured
    5. End Try

  9. #9
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    VB Code:
    1. Try (0 / 0):
    2.     MsgBox "Erm.."
    3. Catch:
    4.     MsgBox "Woot! Handled"
    5. 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

  10. #10

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    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.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  11. #11

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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?
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  12. #12
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.

  13. #13
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    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.

  14. #14
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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

  15. #15
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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."


  16. #16
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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.

  17. #17

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  18. #18
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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.

  19. #19
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.

  20. #20
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    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.

  21. #21
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Also, a ListView of possible functions to use will also be done with the assembly.

    Here is what I mean:
    Attached Images Attached Images  

  22. #22
    Hyperactive Member notquitehere188's Avatar
    Join Date
    Dec 2004
    Posts
    403

    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

  23. #23
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    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.

  24. #24
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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.

  25. #25
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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

  26. #26
    Addicted Member
    Join Date
    Jun 2005
    Posts
    192

    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.

  27. #27

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    PHP comments = C++ comments = JavaScript comments = LightFusion™ comments

    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  28. #28
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Pascal uses (* *)

  29. #29

    Thread Starter
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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?
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  30. #30
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  31. #31
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Try/Catch/Finally example:
    VB Code:
    1. Try
    2.     'code that might generate an error
    3. Catch ex As WebException 'catch errors from classes that give a WebException
    4.     Messagebox.Show(ex.Message)
    5. Catch ex As Exception
    6.     Messagebox.Show(ex.Message)  'catch all other errors
    7. Finally
    8.     'code that will always be executed
    9. End Try
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  32. #32
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    I would have changed it to C syntax..


    - ØØ -

  33. #33
    Fanatic Member Dnereb's Avatar
    Join Date
    Aug 2005
    Location
    Netherlands
    Posts
    863

    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.

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

    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

  35. #35
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  36. #36
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    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...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  37. #37
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    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?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  38. #38
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049

    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)

  39. #39
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    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

  40. #40
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: What Would You Change About VB6 if You Had The Chance? (For Novices and Experts)

    Quote 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.

Page 1 of 2 12 LastLast

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