next up previous contents index
Next:   CONTOUR PLOT Up: The KEYBOARD INTERFACE: Command Previous:   COLOUR TABLE

  CONCATENATION

During complicated macros it is often useful to be able to define new variables, e.g. file names, based on the values of other variables (see Section 30, Page [*]). The joining together of two or more character strings to form a longer character string is known as concatenation.

This command allows two strings to be joined together and used to define the value of a new program variable. This is best demonstrated with a realistic example:

If the two variables #FILE_BASE and #EXTENSION have been defined, we can define a new variable #FILE_NAME to be the concatenation of the two with the following:

Main menu: ENTER COMMAND [PLOT DATA]: concat
ENTER FIRST STRING [fit2d.]: #FILE_BASE
ENTER SECOND STRING [f2d]: #EXTENSION
INFO: Concatenation:
      file.bin
ENTER VARIABLE NAME [#FILE_OUT]: #FILE_NAME



Andrew Hammersley
2004-01-09