• Log in or sign up for an account here: https://www.sythe.org/login

More Questiona about VB 2005

Covey

Creator of EliteSwitch

Retired Sectional Moderator
Visual Basic Programmers
Joined
Sep 9, 2005
Sythe Gold
9
Messages
4,510
Location
Fuckin' BAM!
Discord Unique ID
807246764155338833
Discord Username
Covey#1816
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?
 
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
 
the functions all work. oh, it's not Char() anymore. It's chr().

Also, you can now use Substring on variables.
 
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.
 
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.
 
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
 
Member of the Month Winner
Sythe's 10th Anniversary
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.
 
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.
 
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

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?
 
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.
 
A few of them can be found in the Microsoft.VisualBasic namespace
 
Wait, do you not have an Archer rank?
Doge
Smashing
Why is there BACON in the SOAP!?
Literally nothing
I saw Matthew
Live Free or Die
Cool Kid
Poképedia
PHP Shit Show 2k26
SythePro Subscriber
pretty much everything from vb6 works in vb2005 but with modification...
 
duelarena.gg
Back
Top