PUT_PROMPT_BUFFER or PUT_READ_BUFFER with a '&' does not change variable

Document ID : KB000089704
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
PUT_PROMPT_BUFFER or PUT_READ_BUFFER with a '&' does not change variable
Resolution:

Symptoms

When defining a variable for script function ':PUT_PROMPT_BUFFER' or ':PUT_READ_BUFFER', using an '&' will cause the variable to become blank.

Example:

:PUT_PROMPT_BUFFER &EXAMPLE# = "testing"

Results:

U0020206 Variable 'EXAMPLE#' was stored with value '.


Cause

 PUT_PROMPT_BUFFER' or ':PUT_READ_BUFFER do not use a ampersand '&' when defining the variable


Resolution

Remove the ampersand for the script line. For example:

:PUT_PROMPT_BUFFER EXAMPLE# = "testing"


For more information, please see the documentation under Automic Script Guide > Ordered by Function > Activate Objects > :PUT_READ_BUFFER.