currentIndex = listfind(whatI'mlookingfor,list,currentIndex)
indexlist = ""
while(currentIndex <> -1){
listfind(whatI'mlookingfor,list,currentIndex)
if(indexlist <> ""){
indexlist += ","
}
indexList += listfind
}
Something like that? Syntax is probably wrong as not done CF for a
while!
Giles Roadnight
http://giles.roadnight.name
-----Original Message-----
From: Paddy McKay [mailto:[EMAIL PROTECTED]
Sent: 17 October 2003 13:21
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] List Question
Hi All,
Maybe I am suffering from brain fade again (stop sniggering Roadnight!),
but how can I find the all the positions that a value might appear in a
list.
Basically, I get a list of values from a query, but the value I am
looking for may appear more than once. If I do Listfind it returns the
position of the first instance, but how do I get the positions of the
rest of them?
Any pointers appreciated.
paddy
-----------------
Paddy McKay
Scottish Property Network
[EMAIL PROTECTED]
Tel: 0141 561 7300
Fax: 0141 561 7319
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]