USER>set addr = "One Memorial Drive", city = "Cambridge"
USER>set st = "MA", zip = "02142"
USER>set mail = $listbuild(addr, city, st, zip)
USER>write $list(mail, 2)
Cambridge
USER>write $list(mail, *-1)
MA
USER>write $listlength(mail)
4
USER>write $listfind(mail, "MA")
3
USER>set office = $listbuild("InterSystems", "USA") _ mail
USER>write $listlength(office)
6
USER>write $listfind(office, "MA")
5
USER>
リスト以外の文字列にはリスト関数は使用できません。使用した場合、<LIST> エラーが生成されます。同様に、リストでは文字列関数を使用しません。リスト関数の略語は 2 文字か 3 文字です。