eed
11-22-2004, 11:42 AM
Hi, all,
I'm working with arrays for the first time. I have an array (string data type) that has successfully collected a set of values (names of hardware pieces). Now, given any specific hardware name, I want to refer to my array and determine if the name is an element in the array. How would I do this?
I thought I could treat the array as a normal string and use something like an InStr function to see if strSampleName was contained inside arrHW... maybe I just had the syntax wrong, but I had no success doing InStr on my array.
It seems like there should be an easy way to ask the database, "Is strSampleName an element in arrHW?" A simple boolean response is all I need.
Thanks so much!!!! :help
I'm working with arrays for the first time. I have an array (string data type) that has successfully collected a set of values (names of hardware pieces). Now, given any specific hardware name, I want to refer to my array and determine if the name is an element in the array. How would I do this?
I thought I could treat the array as a normal string and use something like an InStr function to see if strSampleName was contained inside arrHW... maybe I just had the syntax wrong, but I had no success doing InStr on my array.
It seems like there should be an easy way to ask the database, "Is strSampleName an element in arrHW?" A simple boolean response is all I need.
Thanks so much!!!! :help