Skip to content

Commit 8a1a64e

Browse files
committed
Merge pull request #26 from henryhamon/master
Just add list functions
2 parents 89ec2a6 + 683f76c commit 8a1a64e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: COSQuickRef.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Caché ObjectScript Quick Reference
22
A 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

0 commit comments

Comments
 (0)