P
Peter Judge
Guest
I believe this evaluates the NUM-ENTRIES() function (or any function) on each iteration. Check the below: function counter returns integer(input pi as int): message 'in function' pi view-as alert-box. return 5. end. def var i as int. do i = 1 to counter(i): end. -- peter From: Abri Venter [mailto:bounce-abrivaigscoza@community.progress.com] Sent: Monday, 30 March, 2015 02:16 To: TU.OE.RDBMS@community.progress.com Subject: RE: [Technical Users - OE RDBMS] Back to the basics. Fundamental index question1 RE: Back to the basics. Fundamental index question Reply by Abri Venter Hallo If you wanted you could also use: DO iPos = NUM-ENTRIES(psSucursales) TO 1 BY -1 This would only evaluate the NUM-ENTRIES once. This would only be possible if the order you retrieve data does not matter. Thank you A Venter Stop receiving emails on this subject. Flag this post as spam/abuse.
Continue reading...
Continue reading...