Data segments contain all type definitions and variable declarations. Data segments are defined using the following syntax:
dseg segment // type definitions and variable declarations go here dseg ends thread main dseg segment // or here - still global, though dseg ends endt
You can have multiple data segments in an NBC program. All variables are global regardless of where they are declared. Once declared, they may be used within all threads, subroutines, and macro functions. Their scope begins at the declaration and ends at the end of the program.