Bill,
Rather than flipping the array, you could use a comparator. It will output a
coord of all entries of an array that fail the test criterion (just set the
test to the negation of your selection criterion). Then you can pick the
first, last, or any other.
Regards,
Bill Ossmann
--
bill_ossmann@hsgmed.com
Philips Ultrasound
>-----Original Message-----
>From: Bill_Karnavas@transarc.com [mailto:Bill_Karnavas@transarc.com]
>Sent: Tuesday, April 09, 2002 8:42 AM
>To: vrf@lvld.agilent.com
>Subject: vrf VRF: Flipping an array
>
>
>Veers,
>
>Is there a way to reverse the order of an array? I keep thinking
>there is a way, but looking through the contents this morning, I could
>not find it.
>
>I need to look for certain points in an array and I want the first one
>from the high end (or the last point, I guess, that matches my
>criteria), so minIndex() and maxIndex() don't do what I need.
>
>Thanks,
>
>lBill
>
>---------------------------------------------------------------------
>This is the "vrf" maillist, managed by Majordomo. To send messages to
>this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
>unsubscriptions are done through the address
>"vrf-request@lvld.agilent.com".
>If you need details, just send a message containing the text "help"
>to "vrf-request@lvld.agilent.com".
>---------------------------------------------------------------------
>
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
Rather than flipping the array, you could use a comparator. It will output a
coord of all entries of an array that fail the test criterion (just set the
test to the negation of your selection criterion). Then you can pick the
first, last, or any other.
Regards,
Bill Ossmann
--
bill_ossmann@hsgmed.com
Philips Ultrasound
>-----Original Message-----
>From: Bill_Karnavas@transarc.com [mailto:Bill_Karnavas@transarc.com]
>Sent: Tuesday, April 09, 2002 8:42 AM
>To: vrf@lvld.agilent.com
>Subject: vrf VRF: Flipping an array
>
>
>Veers,
>
>Is there a way to reverse the order of an array? I keep thinking
>there is a way, but looking through the contents this morning, I could
>not find it.
>
>I need to look for certain points in an array and I want the first one
>from the high end (or the last point, I guess, that matches my
>criteria), so minIndex() and maxIndex() don't do what I need.
>
>Thanks,
>
>lBill
>
>---------------------------------------------------------------------
>This is the "vrf" maillist, managed by Majordomo. To send messages to
>this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
>unsubscriptions are done through the address
>"vrf-request@lvld.agilent.com".
>If you need details, just send a message containing the text "help"
>to "vrf-request@lvld.agilent.com".
>---------------------------------------------------------------------
>
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
if you just want the last element in an array why not use
Ary[totSize(Ary)-1] ?
Mike Watts
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------