I don't know whether it's programmtically better. I've code like that too and I use style (B).
In reply to Re: Basic programming question by kiat in thread Basic programming question by j.goor