VBA Strange syntax -


this question has answer here:

see bellow vbe tells expects "=" on line 3 inspite of fact .add sub, don't understant why?

1  sub set_params(key string, value variant) 2      dim tranasitions collection 3      transitions.add (value, key) 4  end sub 

it because code doesn't know tranasitions is, have typo in declaration (the dim line).

so fix it, fix declaration:

dim transitions collection 

and remove () call, don't use them subs in vba (unless put call in front):

transitions.add value, key 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -