Adblock breaks this site

More Questiona about VB 2005

Discussion in 'Programming General' started by Covey, Mar 30, 2007.

  1. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    More Questiona about VB 2005

    just need to know if 2005 can still use these functions or does it have different functions for these etc.

    Code:
    Random Inbuilt Functions:
    val()
    instr()
    mid()
    left()
    split()
    int()
    round()
    
    Looping:
    for i = 1 to 2
    next i
    
    do until i = 5
    loop
    they're the most popular ones i use, do they still exists in 2005 or have been changeD?
     
  2. 5cript

    5cript Active Member

    Joined:
    Jan 22, 2007
    Posts:
    138
    Referrals:
    1
    Sythe Gold:
    0
    More Questiona about VB 2005

    well i tried the codes out and there were alot of errors quite a few you need to declare it like 'i' and 'inbuilt' and the rest imnot sure but they probably do work at some extent
     
  3. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    More Questiona about VB 2005

    yer you have do declare i and such but if val() turns into Val() (gains a capital) it means the functions exist.

    thanks for trying them mate.
     
  4. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    More Questiona about VB 2005

    the functions all work. oh, it's not Char() anymore. It's chr().

    Also, you can now use Substring on variables.
     
  5. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    More Questiona about VB 2005

    the loop and for still there,

    now the others still there under the VisualBasic Class but you better off using the new classes, they are faster

    ex
    OLD
    aaa = split()
    NEW
    aaa = aaa.split()

    VB6 is an old program that is not even full object oriented, any serious programmer should move to .net on vb or c# at least for windows programming.
     
  6. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    More Questiona about VB 2005

    oh take a look at this

    http://msdn2.microsoft.com/en-us/library/kaf4ssya(vs.71).aspx

    again, DO NOT USE VisualBasic functions on vs2005 start thinking objects and use the .net lib program performance will be better plus you will be using real object oriented programming instead of the pathetic VB6 way
     
  7. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    More Questiona about VB 2005

    it's always been chr()

    and i have no idea what people mean by "object oriented"
     
  8. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    More Questiona about VB 2005

    read a book about object orientation please. It will teach you ALOT.
     
  9. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    More Questiona about VB 2005

  10. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    More Questiona about VB 2005

    hmm ok, well if i understand that correctly i already do a bit of object orientation in vb6.
     
  11. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    More Questiona about VB 2005

    it's crap in vb6 though. You can't use it fully because you can't create classes and use inherits.
     
  12. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    More Questiona about VB 2005

    Prehistoric object oriented parts, something that C++, Delphi, and other have had for long time, is hard to explain in a few words, example using Inheritance you can get an object like tab control and change the behavior and look.

    I guess by best advice will be when you start using VS2005 forget all about VB6, is a good idea do a fresh start and forget all bad habits you may have from VB6. You already have programming logic all you need is to create programs using the new way (well new for .net) old for other languages.
     
  13. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    More Questiona about VB 2005

    hey Cobey, really like ur eliteswtich client, do u want to write this on .net?

    i would love to help on this, let me know. with what u know about RS2 and and what you have done we could really do some nice new client
     
  14. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    More Questiona about VB 2005

    Dodge, don't double post. No he makes EliteSwitch in VB6.

    I think Covey is more of a solo programmer anyways.

    And yes, Object Orientation is officially full in .Net. The code can be simplified and enhanced for maximum speed, and minimum code over VB6. Take NotifyIcon control, then compare it to how many hundred of lines of code in VB6 to do what it does.
     
  15. Skeletron

    Skeletron Guest

    Referrals:
    0
    More Questiona about VB 2005

    Using Functions like Asc(), Instr(), etc. in VB 2005 is not part of the .net framework. Instead it calls from a .dll like VB6 does so it is very slow.

    C# is much better then VB 2005 since it does not have these functions like Asc() and Instr() so you require to use the built in ones like SubString, IndexOf, and Asc() you will have to build a function for which is easy.
     
  16. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    More Questiona about VB 2005

    yer, like swan said its in vb6 and for my big projects im a solo coder. :)
    and yes i'd like to convert EliteSwitch to .net, is it true that you're able to convert your vb6 projects over with a click of a button?
     
  17. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    More Questiona about VB 2005

    yes it is, however SHITLOADS of code will be messed up, so it's faster and easier to just copy/paste functions from vb6 source. Most of them will still work.
     
  18. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    More Questiona about VB 2005

    meh so you suggest i just import all forms then just play in debug mode and test everything and fix all the errors generated that way?
     
  19. x⁹

    x⁹ Guest

    Referrals:
    1
    More Questiona about VB 2005

    A few of them can be found in the Microsoft.VisualBasic namespace
     
  20. Matthew

    Matthew Probably breaking stuff

    Joined:
    Nov 12, 2005
    Posts:
    5,153
    Referrals:
    42
    Sythe Gold:
    5,377
    Wait, do you not have an Archer rank? (5) Doge (3) Smashing Why is there BACON in the SOAP!? Literally nothing I saw Matthew Live Free or Die (3) Cool Kid (6) Poképedia Homosex (4)
    More Questiona about VB 2005

    pretty much everything from vb6 works in vb2005 but with modification...
     
< Anyone know any good place to get ebooks | WorldList.net update >


 
 
Adblock breaks this site