Integrations (PTC products, 3rd party products and code)
>
Code integration (Ada, C, C#, C++, IDL, Java, SQL and VB)
>
SDL script for generating code
>
Keywords
>
%numeric keyword (SDL script)
%numeric keyword (SDL script)
This keyword declares a global variable as a numeric.
Use this keyword only in the Generate.sdl template.
After declaring a global variable, you can set its content through the %setvar keyword and read its content through the %getvar keyword.
Syntax
%numeric "<name of variable>"
In this example, the code declares a global numeric variable named nHasStereotype.
%numeric "nHasStereotype"
Related Topics
%getvar keyword (SDL script)
%isin keyword (SDL script)
%isnumeric keyword (SDL script)
%localnumeric keyword (SDL script)
%setvar keyword (SDL script)
Overview of keywords (SDL script)
Was this helpful?
This site works best with JavaScript enabled