You can use these primitives to manipulate strings (in the argument field of GASP statements):
.LEN("str")
"str"
, as an absolute
expression. For example, `.RES.B .LEN("sample")
' reserves six
bytes of memory.
.INSTR("string", "seg", ix)
.INSTR("ABCDEFG", "CDE", 0)
' evaluates
to the absolute result 2
.
The result is -1
if seg does not occur in string
after position ix.
.SUBSTR("string",start,len)
Packaging copyright © 1988-2000 OAR Corporation Context copyright by each document's author. See Free Software Foundation for information.