Vaidy looks a goof he made assigning variables in Dynamics GP. Check out his post Carefully Place Variables Assignment in Dex to avoid the same mistake.
Carefully Place Variables Assignment in Dex
Archived post from 2010. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.