Thanks for that.. couldn't seem to get it working..But have sort of got this working !!
This is what I have:
Code:
Code =
(
Connection and query BLAH BLAH BLAH
Dim speed()
iCount = 0
If Not objectList.EOF Then objectList.MoveFirst
Do While Not objectList.EOF
ReDim Preserve speed(iCount)
speed(iCount) = objectList.Fields(0)
iCount = iCount + 1
objectList.MoveNext
Loop
)
WS_Exec(Code)
WS_Eval(icount, "icount")
Gui, Add, Text,,Hello World
WS_Eval(bar%A_Index%, "speed(" A_Index ")")
Gui, Add, Text,, % bar%A_Index%
Loop, %icount%
{
WS_Eval(bar%A_Index%, "speed(" A_Index ")")
Gui, Add, Text,, % bar%A_Index%
}
Gui, Show,w500,
WS_Uninitialize()
If I run this omitting the section in
green then I'm returned the values from speed(1) onwards. speed(0) is ignored hence the green bit.
Can this be tidied up ? and present the results as a GUI dropdown list, not as GUI text entries ?
I would like to filter out some of the values from the returned data.
How would I use
if var contains on % bar%A_Index% ?
If have tried
Code:
test := % bar%A_Index%
if test not contains UID=1
Gui, Add, Text,, % bar%A_Index%
But that didn't work.
any ideas on that as well

??
Thanks for your time and patience.