Note that i started my programming career as a .NET Developer so i never got hold of VB6.0 even in school (I have a Physics degree)
I was experimenting with some vba codes when i stumbled upon this weird function call constructs for vb6/vba. i was calling a msgbox function with custom parameters
MsgBox(Prompt:="test", Title:="jokiz", Buttons:=vbOKOnly)
and it's complaining about "Expected: =", expected where (talk about those helpful messages)? I found out later that it needs a variable to assign the results to. Turned out that if you call functions with parenthesis, you're obliged to assign the results to a variable. I later found this blog post of eric lippert, which explains the interiors of these weird parentheses rules. This line made me laugh: "These rules are confusing and silly, as the designers of Visual Basic .NET realized".
The moment we ported our project to VS2005 the past week, I was excited to generics and all the new stuff. Here i am learning VBA/VB6 for the Excel programming requirement of the project.
Posted
12-14-2006 3:43 PM
by
jokiz