UnbindImage (Stringlist subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (syntax diagram, tags and links)
m (syntax diagram, tags and links)
Line 16: Line 16:
<ol><li>The following example illustrates the use of <var>UnbindImage</var> after a <var>BindImage</var>:
<ol><li>The following example illustrates the use of <var>UnbindImage</var> after a <var>BindImage</var>:
<p class="code">%list is object stringList
<p class="code">%list is object stringList
  ...
<p class="code">...
</p>
image customer
image customer
  id    is string len 8
<p class="code">id    is string len 8
  lname  is string len 32
lname  is string len 32
</p>
end image
end image
  ...
<p class="code">...
</p>
%list = new
%list = new
%list:bindImage('CUSTOMER')
%list:bindImage('CUSTOMER')
  ...
<p class="code">...
</p>
%list:unbindImage
%list:unbindImage
</p></ol>
</p></ol>

Revision as of 22:35, 6 February 2011

Disassociate a Stringlist from an image (Stringlist class)


This method disassociates or unbinds an image from a Stringlist. UnbindImage accepts no arguments and does not return anything.

Syntax

sl:UnbindImage

Syntax terms

sl Stringlist object

Usage notes

UnbindImage undoes the binding created by BindImage.

Examples

  1. The following example illustrates the use of UnbindImage after a BindImage:

    %list is object stringList

    ...

    image customer

    id is string len 8 lname is string len 32

    end image

    ...

    %list = new %list:bindImage('CUSTOMER')

    ...

    %list:unbindImage

See also