Micro Focus QTP (UFT) Forums
Searching an OracleList object - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Searching an OracleList object (/Thread-Searching-an-OracleList-object)



Searching an OracleList object - mitch - 05-17-2011

I need to check to see if there is a certain list item in an OracleList object. Can I use the IsItemInList method? I'm trying but it does not seem to work...

OracleFormWindow("Navigator").OracleTabbedRegion("Functions").OracleList("Function List").IsItemInList("Subinventory Transfer")

This should return a Boolean to my understanding. I've seen some posts that indicate that it will only return True if the list item is actually selected. Anyone know if this is true?

I want to search the whole list, and return True if Subinventory Transfer in in the list. I looked through QTP help, and it appears that this should work, but maybe it only check the selected item in the list?

Thanks all!
Mitch
OK,this is working now as coded. Not sure what the issue was... ? But this works.