Bug? Dim error (sort of)

DPaul

Active Member
Licensed User
Longtime User
Hi,

This is not really a bug , but an aid for lazy programmers....
Look at this sub:

sub mySub(a as string, b as string)
Dim ................
Dim ..................
Dim .................
Dim x , y, z, a, f as string

..code.........
end sub
You call a sub, with arguments a and b
But , for some forgotten reason, a is also dimmed in the sub; now you end up with "error evaluating..." and no value for a. (The "error evaluating" only shows if you insert a breakpoint, and check a)
b4a might give a warning in the log section, it took me 5 minutes of testing before i found that :)

DPaul
 
Top