O
OctavioOlguin
Guest
Greetings... Everybody of us, know that we can DEFINE VARIABLE myARRAY AS CHAR NO-UNDO EXTENT 5 INITIAL ["A","B","C","D","E"]. DISPLAY "Third position stores " myArray[3]. To get a message that displays sort of "Third position stores C". Question is. Is there an instruction that could allow me to get: "Letter D in in position 4" without resorting to a DO i =1 to length_of_array: if myArray = value_searched THEN Display..... I'm talking about some LOOKUP kind of function or instruction that allows to search the values inside an array? -- Javascript would do .indexOf("D") Thanks.
Continue reading...
Continue reading...