User Tools

Site Tools


untie_disassociate_a_string_value_from_an_astring_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== UNTIE(disassociate a string value from an ASTRING) ====== Previous pageReturn to chapter overviewNext page

UNTIE([stringtoken],[index])

blk2blue.jpg

UNTIE Removes a value previously TIED for an ASTRING.
stringtoken The label of a previously declared ASTRING token. If omitted, all previously declared ASTRINGs are used.
index A numeric constant or variable defining the index value of a previously declared ASTRING. The index value may be any LONG value greater than zero. If omitted, all indexes are used.

The UNTIE statement disassociates a string value that was previously associated to a particular ASTRING stringtoken and index.

Example:

  PROGRAM

   MAP

   END

         

INCLUDE('EQUATES.CLW')

COLOR   EQUATE(1)

SIDES   EQUATE(2)

AS1     ASTRING

CODE

AS1 = 'SHAPE'                  !Declare ASTRING string token

TIE('SHAPE',COLOR,COLOR:RED)   !Associate COLOR:RED to COLOR for ASTRING SHAPE

TIE(AS1,SIDES,3)               !Associate 3 to SIDES for ASTRING SHAPE

(some code here)

UNTIE(AS1, SIDES)

See Also:

TIE

TIED

untie_disassociate_a_string_value_from_an_astring_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1