More Questiona about VB 2005

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

More Questiona about VB 2005
  1. Unread #1 - Mar 30, 2007 at 5:52 AM
  2. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    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?
     
  3. Unread #2 - Mar 30, 2007 at 8:36 AM
  4. 5cript
    Joined:
    Jan 22, 2007
    Posts:
    138
    Referrals:
    1
    Sythe Gold:
    0

    5cript Active Member

    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
     
  5. Unread #3 - Mar 30, 2007 at 9:13 AM
  6. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    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.
     
  7. Unread #4 - Mar 30, 2007 at 9:47 AM
  8. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    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.
     
  9. Unread #5 - Mar 30, 2007 at 11:14 AM
  10. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    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.
     
  11. Unread #6 - Mar 30, 2007 at 11:21 AM
  12. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    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
     
  13. Unread #7 - Mar 30, 2007 at 3:06 PM
  14. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    More Questiona about VB 2005

    it's always been chr()

    and i have no idea what people mean by "object oriented"
     
  15. Unread #8 - Mar 30, 2007 at 3:10 PM
  16. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    More Questiona about VB 2005

    read a book about object orientation please. It will teach you ALOT.
     
  17. Unread #9 - Mar 30, 2007 at 3:51 PM
  18. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    More Questiona about VB 2005

  19. Unread #10 - Mar 30, 2007 at 5:02 PM
  20. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    More Questiona about VB 2005

    hmm ok, well if i understand that correctly i already do a bit of object orientation in vb6.
     
  21. Unread #11 - Mar 30, 2007 at 6:03 PM
  22. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    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.
     
  23. Unread #12 - Mar 30, 2007 at 6:08 PM
  24. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    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.
     
  25. Unread #13 - Mar 30, 2007 at 8:49 PM
  26. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    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
     
  27. Unread #14 - Mar 30, 2007 at 9:26 PM
  28. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    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.
     
  29. Unread #15 - Mar 31, 2007 at 1:05 AM
  30. Skeletron
    Referrals:
    0

    Skeletron Guest

    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.
     
  31. Unread #16 - Mar 31, 2007 at 12:42 PM
  32. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    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?
     
  33. Unread #17 - Mar 31, 2007 at 12:54 PM
  34. speljohan
    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0

    speljohan Guru
    Visual Basic Programmers

    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.
     
  35. Unread #18 - Apr 1, 2007 at 7:38 AM
  36. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    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?
     
  37. Unread #19 - Apr 1, 2007 at 8:23 AM
  38. x⁹
    Referrals:
    1

    x⁹ Guest

    More Questiona about VB 2005

    A few of them can be found in the Microsoft.VisualBasic namespace
     
  39. Unread #20 - Apr 1, 2007 at 1:55 PM
  40. Matthew
    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)

    Matthew Probably breaking stuff

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site