Calling a function with params not even declared?

Hello, I am in the process of re-writing an old vb application into a web application. But while going trough the source code, I’m seeing something weird.

All of the sudden a subroutine is called, using params that are not declared anywhere. They are however declared inside of the subroutine, and that is basically the only thing the routine does.

Is this some VB special thing? Maybe I am looking at this wrong somehow, but I was just wondering if this might be some kind of weird property of the language?

Sub st_kmatr(E, i, L, k11, k12, k21, k22) k11 = 4! * E * i / L k12 = 2! * E * i / L k21 = k12 k22 = k11 End Sub 

submitted by /u/steinyo
[link] [comments]

Leave a Reply