How to get the value of the current variable/field in Sage X3?

By | March 1, 2016

ZC contains the value of the current variable (in input, initialization, check, selection and help mode).

Class, Type and Dimension:

Type of zc depends on context that corresponds to type of variable being entered (at the time of check or help is executed) or being initialized.



# In a routine associated with a mask, test to see if
# zc >= 100. If not, 100 is assigned to zc.
CTRL_ZONE              :# Label called from the mask
if zc < 100
zc = 100
End                             : # Return to mask


zc gives access to “current zone” for a variable defined. A current zone exists in following cases:

  • Formula or routine called from a mask in validity control zone. zc then represents value entered by user and it may be reassigned by verification routine,
  • Formula or routine called from a mask as default value. If zc has been modified, its value is then copied to variable corresponding to mask,
  • Routine called from a mask by the help key. zc also represents the variable being entered and it may similarly be reassigned,
  • During a calculation, zc corresponds to the zone being entered.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence. 

Greytrix caters to a wide range of Sage X3, a Sage Business Cloud Solution, offerings. Our unique GUMU™ integrations include Sage X3 for Sage, Dynamics 365 CRM, and Magento eCommerce along with Implementation and Technical Support worldwide for Sage X3. Currently we are Sage X3 Implementation Partner in East Africa, Middle East, Australia, Asia, US, UK. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit and India Legislation for Sage X3 to Sage business partners, end users and Sage PSG worldwide. Greytrix Sales Commission App for Sage X3 simplifies commission calculations and postings on sales transactions.

The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.

Greytrix is a recognized Sage champion ISV Partner for GUMU™ Sage X3 – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage X3 – Salesforce is a 5-star rated app listed on Salesforce AppExchange and GUMU™ integration for Dynamics 365 CRM – Sage ERP listed on Microsoft AppSource.

For more information on Sage X3 Integration and Services, please contact us at, We would like to hear from you.