[progress Communities] [progress Openedge Abl] Forum Post: Reading An Array... "backwards"

  • Thread starter Thread starter OctavioOlguin
  • Start date Start date
Status
Not open for further replies.
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...
 
Status
Not open for further replies.
Back
Top