McIDAS User's Guide
Version 2015.1

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


TE

Enters a string in the string table.


Format

TE string "text


Parameters

string

alphanumeric string name, 1 to 12 characters

"text

value, command, or text defining the string; the total length may be up to 160 characters including spaces; the text may include a pound sign (#) so another string's value is immediately substituted; use ## to substitute the value when string is run; the double quote is mandatory


Remarks

When #string appears in a command, it is replaced by its definition from the string table. When #SYS(word) or #UC(word) appears in a command, it is replaced by the value stored in the specified SYSKEY.TAB or User Common word, respectively. See the SYSVAL and UCU commands for more information.

If string's text includes another string name preceded by a single pound sign (#), its value is immediately substituted. If the included string is preceded by two pound signs (##), the value is filled when string is run by typing #string.

Strings with the names KEYF, KEYAF, KEYCF, and KEYSF followed by a number between 1 and 12 (for example, KEYF1, KEYAF2) can be run using the function keys. See Using Strings and Function Keys for more information.

A string name whose first character is a question mark (?) is defined as global. Global strings remain in the table unless you delete them with TD ALL GLOB.

If the string name is a single letter (A-Z), you can run it by typing #string or by pressing Ctrl string.


Note

Do not use X as a string name; McIDAS interprets it as a place holder for default values. Likewise, if a series of strings begins with X (for example, XMAP), you cannot delete them with TD PREFIX X nor run them with REPEAT X 1 TO 1.


See Also

Command TL lists string tables; command TD deletes them; command TU is the string table utility. Command ASK1 can also be used to create a string or change its value.


Examples

TE LOAD

This entry assigns blanks to the string LOAD.

TE LOAD "IMGDISP GOES/VIS STATION=KMSN

This entry places an IMGDISP command in the string LOAD. To run the command, Type:  #LOAD.

TE KEYF2 "MAP H

To run the MAP H command, press the F2 key.

TE NOTE "MAP OF NORTH AMERICA IN SATELLITE PROJECTION

This entry stores the text MAP OF NORTH AMERICA IN SATELLITE PROJECTION in the string NOTE.

TE AAA "TERM L ON

This entry stores the command TERM L ON in the string AAA.

In the compound string example below, remember to define the string replacing the # value before defining the string that uses it.

TE STN "KABQ

The replacement string is #STN.

TE WEATHER "SFCLIST #STN

The actual string stored in WEATHER is SFCLIST KABQ.

TE WEATHER "SFCLIST ##STN

To vary the value in #STN, insert two #s in the string WEATHER. The actual string stored in WEATHER is SFCLIST #STN.

If you change string STN now, the new value is used when WEATHER is run.

TE STN "KMIA

If you enter this change, the system uses SFCLIST KMIA the next time #WEATHER is run.


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]