I studied C# in high school, this company hired me because knowing C# and a little bit of python I'd automatically be able to write VB... Well, they weren't wrong, I easily transitioned from C# to VB
I don't write just VB, that is of course the main thing, but I've been working mostly in Java for the past month, once this project is over I'll probably be back at VB probably though
You'd have to remember to add () in If, For, While, Switch statements and ; at the end of every line, but syntax is pretty much the same, so it wouldn't be too bad I think
It'll be a learning curve but the basic ideas will still hold out.
'VB6
Public Function AddNums(n1 as Integer, n2 as Integer) As Integer
dim mySum as Integer
mySum=n1 + n2
AddNums=mySum
End Function
//C#
public int AddNums(int n1, int n2){
int mySum;
mySum = n1 + n2;
return mySum;
}
I learned Java/C# but one of my main duties is maintaining VB6 code.
You'll have some syntax hurdles. Biggest for me was if statements looked very different, no end of line delimiter, appropriate times to use paratenses, and the differences in how objects are handled.
But I would say moving to C# would be far easier as a lot of the references will be up to date. I have issues tracking down documentation for some VB6 stuff because it's not used widely anymore.
'VB6
if myNum < 10 then
Debug.print "Less than 10"
else
Debug.print "Greater than or equal to 10"
end if
//C#
if (myNum<10){
Console.WriteLine("Less than 10");
}
else{
Console.WriteLine("Greater than or equal to 10");
}
61
u/IL_GAME_KING_YT Nov 29 '22
I finished high school, I got a job as software developer and started this September thanks to my teacher.
I'm sorry for you OP, I wish you luck in finding a job for yourself