From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Option Explicit
dim k : k = 0
dim obj : set obj = new CAbc
dim i : for i = 1 to 3
dim j : for j = 1 to 5
k = k + 1
call obj.def()
Next
Next
MsgBox k
class CAbc
sub def()
k = k + 1
end sub
end class
If your Code looks like this it seems to work like expected.