File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11# Caché ObjectScript Quick Reference
22A list of some common ObjectScript expressions
33
4- ## Object/SQL Basics
4+ ## Object/SQL Basics
55
66| Action | Code |
77| ----------------------------------------------| -----------------------------------------------------------------------------------|
@@ -90,8 +90,11 @@ A list of some common ObjectScript expressions
9090| Display string after replacing characters | ` Write $translate(string, searchChars, replaceChars) ` |
9191| Build a list | ` Set listString = $listbuild(list items, separated by comma) ` |
9292| Retrieve an item from a list | ` Set variable = $list(listString, position) ` |
93+ | Retrieves elements sequentially from a list | ` Set pointerToNextElement = 0 ` <br > ` While = $ListNext(listString, pointerToNextElement, value) {} ` |
9394| Put item into list string | ` Set $list(listString, position) = substring ` |
9495| Display the length of a list | ` Write $listlength(listString) ` |
96+ | Search a value in a list | ` Write $listfind(listString, value) ` |
97+ | Build a list from a string | ` Set listString = $listFromString(string, delimiter) ` |
9598
9699## ObjectScript Existence Functions
97100
You can’t perform that action at this time.
0 commit comments