Haven't seen anyone mention vector functions here. Do many people use them?

In situations where you are performing identical operations on every value in a dynamic array, I rekon vector functions are a more efficient way of handling multivalues then dcount/loop constructs.

A simple example of adding 1 to every attribute; instead of:

   max = dcount(var<15>,@vm)
   for i = 1 to max
      var<15,i> += 1
   next

you  use:

   var<15> = adds(var<15>,reuse(1))

Cheers,
Stuart
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to