Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > SDL script for generating code > Keywords > %localstring keyword (SDL script)
  
%localstring keyword (SDL script)
This keyword declares a local variable as a string. A local variable can exist only in the context of the generation template for which the local variable is declared.
* 
After declaring a local variable, you can set its content through the %setlocalvar keyword and read its content through the %getlocalvar keyword.
Syntax
%localstring "<name of variable>"
In this example, the code declares a local string variable named strStereotypeName.
%localstring "strStereotypeName"