When should be program block dynamic or static ? members of static program block , members of automatic program blocks?

In reply to sriram.seshagiri:

Hi Dave,
Please kindly let me know regarding this. I am curious to know why it is not working for me here since, like you said i being a loop variable under a method it should default to an Automatic variable right.

Please let me know. Thanks.