HOW TO

Concatenate variables with embedded blanks using SML

Last Published: April 25, 2020

Summary

This article describes how two variables and a blank can be concatenated into a third variable using SML, or if an SML variable is assigned with a string which contains embedded blanks.

Procedure



To concatenate two variables, use the following usage:

Code:
&sv 1 first
&sv 2 second
&sv 3 "%1 %2"


To type or use the third variable, it must be surrounded in quotes because it contains a blank.

Code:
&type "%3"


If there is a SML variable with embedded blanks, use the following by surrounding the SML variable in single quotes:

Code:
&SV 1 "This is a string"
MOVE *
TEXT '%1'

Article ID:000005563

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic