Position on array

Position on array

Postby Silvio.Falconi » Mon Dec 29, 2014 9: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: Position on array

Postby nageswaragunupudi » Mon Dec 29, 2014 10:21 pm

atest[ ascan( asample, n ) ]
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Position on array

Postby Silvio.Falconi » Mon Dec 29, 2014 11:07 pm

thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 98 guests