|
|
 |
RE: FN-FORUM: FW: Arrays
date posted 17th January 2006 13:42
Andy
Great, works fine, found it straight away, no duplicates and your syntax was
fine
All the best
Dave
Don't think there is a native function in ASP, you could write a simple
function to do it;
Function fnInArray(lookupvalue, myarray())
Dim X
For X = lbound(myarray) to ubound(myarray)
if myarray(X) = lookupvalue then
return true
end if
Next
Return false
End function
(just typed that in so the syntax might no be perfect)
Done mainly .NET recently so somethings bound to be wrong ;)
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of David
J MacKillican
Sent: Tuesday, January 17, 2006 1:59 PM
To: Andy Macnaughton-Jones
Subject: FN-FORUM: FW: Arrays
Hi all
Arrays: how do you find out if a value is already in an array? Found it
for php (in_array) but not is asp/vbScript.
Anyone know (daft question, I know someone will)
Thanks
Dave
David J MacKillican
http://www.djmwebservices.com your business open 24 hours
--
Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414
or visit www.prosperity4.com and benefit from Inland Revenue approved
expenses today.
To advertise here: http://www.freelancers.net/advertising.html
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|