File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Caché ObjectScript Quick Reference
2
2
A list of some common ObjectScript expressions
3
3
4
- ## Object/SQL Basics
4
+ ## Object/SQL Basics
5
5
6
6
| Action | Code |
7
7
| ----------------------------------------------| -----------------------------------------------------------------------------------|
@@ -90,8 +90,11 @@ A list of some common ObjectScript expressions
90
90
| Display string after replacing characters | ` Write $translate(string, searchChars, replaceChars) ` |
91
91
| Build a list | ` Set listString = $listbuild(list items, separated by comma) ` |
92
92
| 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) {} ` |
93
94
| Put item into list string | ` Set $list(listString, position) = substring ` |
94
95
| 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) ` |
95
98
96
99
## ObjectScript Existence Functions
97
100
You can’t perform that action at this time.
0 commit comments