Digging deep into Report Writer, David Musgrave shows how to use the RW_Token function to parse Runtime build numbers and not just for reporting.
Using RW_Token to parse Runtime build numbers
Archived post from 2010. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.