There is no built-in function to do that. You should go for ALINES():

lcString = ["A","B","C","D"]
Alines(laStrings, lcString,0,",")
lnIndex = Ascan(laStrings, ["C"])
? lnIndex

Note: I considered the quotes being part of the string in the above example.

On Wed, Apr 22, 2009 at 2:00 AM, Matt Jarvis <[email protected]> wrote:
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf Of Tracy Pearson
>> Sent: Tuesday, April 21, 2009 3:53 PM
>> To: [email protected]
>> Subject: Re: position of item in a list
>>
>> Are you speaking of a ListBox Object? listbox.listid A
>> variable that looks like ["A", "B", "C", "D"]? inlist("C",
>> &varname.) A variable that looks like [ABCD]? AT("C") An
>> Array? ASCAN()
>>
>> Your request is vague.
>>
>
> Like I said, I'm rusty and tired....   <g>
>
> If I had a collection of strings, like this:
>
> 'matt', 'jarvis', 'programmer', 'guy'
>
> and searched it with this desired function for the string 'programmer',
> I'd want the number 3 to be returned to me.
>
>
> Matt Jarvis
> Programmer/DBA
> King | Retail Solutions
>
>
>
>
>
> Electronic Privacy Notice. This e-mail, and any attachments, contains 
> information that is, or may be, covered by electronic communications privacy 
> laws, and is also confidential and proprietary in nature. If you are not the 
> intended recipient, please be advised that you are legally prohibited from 
> retaining, using, copying, distributing, or otherwise disclosing this 
> information in any manner. Instead, please reply to the sender that you have 
> received this communication in error, and then immediately delete it. Thank 
> you in advance for your cooperation.
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to