In your case, you can set a variable to be a blank string expression, something like this:<script>
window.external.ActivSet( 'nothing', ' ' ) ;
</SCRIPT>
MESSAGEBOX('{String1}{nothing}{String2}')
-----------------
There are a number of formats that are allowed for string expressions:
Single Quotes
If you enclose a string in single quotes, then Activ Variables within the string, that are enclosed in curly braces ({}), will be expanded into their values.
For example, the following statement, will display the title of the E-Book in a message box:
MESSAGEBOX('{title}')
Note: The string may contain multiple Activ Variables, and may also contain other text, so the following is also perfectly valid:
MESSAGEBOX('The title of this E-Book is {doublequote}{title}{doublequote}')
Non Expanding Quotes
If you enclose a string in single quotes, preceded by a tilde character (~), then Activ Variables are not expanded.
For example, the following statement, will actually display {title} in a message box:
MESSAGEBOX(~'{title}')
Numerical Expressions
It is actually possible to use a numerical expression in places where a string expression would be required. The numerical expression will be evaluated, and the result value converted into a string.
For example, the following statement, will display the number 4 (the result of evaluating 2+2 as a numerical expression and converting the result value to a string), in a message box:
MESSAGEBOX(2+2)
In contrast, the following statement will actually display 2+2 in a message box:
MESSAGEBOX('2+2')