B
Bill Wood
Guest
NUM-ENTRIES(list) and ENTRY(list,token) can be combined to get what you want (if I understand what you want) DEF VAR list AS CHAR INITIAL "a,b,c,d,e". /* 5 entries */ DEF VAR entry2ndFromLeft AS CHAR. DEF VAR entry2ndFromRight AS CHAR. DEF VAR pos AS INTEGER INITIAL 2. /* The 2nd ENTRY is easy going LEFT-to-RIGHT */ entry2ndFromLeft = ENTRY (list, pos). /* 'b' */ /* To get 2nd from Right, just use NUM-ENTRIES and subtraction. */ entry2ndFromRight = ENTRY (list, NUM-ENTRIES(list)+1-pos). /* 'd' */
Continue reading...
Continue reading...