FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Position on array
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Position on array
Posted: Mon Dec 29, 2014 09:53 PM
I have 2 array with the same len :

asample:= := {200,300,400,500,600}

atest:= := {silvio,mario,paolo,rosa,valerio}


and I have a function return me only the number I have on first array sample 400
and I wish Know the position of element to have the text on second array sample : Paolo

How I can make ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Position on array
Posted: Mon Dec 29, 2014 10:21 PM

atest[ ascan( asample, n ) ]

Regards



G. N. Rao.

Hyderabad, India
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: Position on array
Posted: Mon Dec 29, 2014 11:07 PM

thanks

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion