Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is a value in an array
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
I have a simple array I've defined.
I'm pulling a value into my datatable as a seperate action to use later.
Now I need to check my array and execute a line of code ONLY if the value I put into my datatable is present in the array.

Code:
TestArray = Array("value1", "value2")

TeWindow....TeField("FieldName").Output CheckPoint("GetValue")

If DataTable("GotValue", dtGlobalSheet) 'help me'  Then
...This code will execute if "GotValue" is in the TestArray
End If
Reply


Messages In This Thread
Is a value in an array - by Brian.Osborne - 02-17-2011, 08:27 PM
RE: Is a value in an array - by surya_7mar - 02-17-2011, 09:28 PM
RE: Is a value in an array - by tarun - 02-17-2011, 09:41 PM
RE: Is a value in an array - by basanth27 - 02-23-2011, 07:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to convert a single dimension array to two dimensional array venkatesh9032 3 5,516 02-10-2014, 03:07 PM
Last Post: pranikgarg
  Adding array to another Global array in VB Script test911 1 3,165 12-02-2012, 12:40 PM
Last Post: parminderdhiman84

Forum Jump:


Users browsing this thread: 2 Guest(s)