Add new features for Examine command:
Let assume I have a string dynamic array:
#str (a/1:6) dynamic const <"10","1","31","20","2","21">
I want to search for the string "1" in that array, so I want to get index 2 that it is exactly the same
But in Natural Examine I will get Index 1 or if backwards I will get 6
So I want to propose 2 new features:
Add in Examine support for REGEX
Add in Examine with length is equal and value equal
Add Examine on numbers/bool type also
It wont work when the actual value isnt in array, such as: "10","4","31","20","2","21"
I will get invalid index : 1
Hello Hezi and thank you for posting this request.
REGEX - we are considering it under this Aha Idea - you may want to vote or leave comment. https://adabasnatural.ideas.aha.io/ideas/NATOS-I-73
Examine full length and value could be achieved with this sample:
DEFINE DATA LOCAL
1 #A(A/1:10) DYNAMIC INIT <"11","1","2">
1 #I(I4)
END-DEFINE
EXAMINE #A(*) FOR FULL "1"
WITH DELIMITER ' '
GIVING INDEX #I
WRITE #I
END
3. EXAMINE is for string values, therefor we will not implement support of Numeric values. It could be solved with FOR loop.