Then you will have to figure out if it is mydata[0] or mydata[1] that stores the variable you want. Change your mydata= 0 and select case mydata to mydata[0]=0 or mydata[1]=0 and select case mydata[0] or select case mydata[1]