Android Question SelectedItem Spinner Error

dhernandez

Active Member
Licensed User
Longtime User
Good day to all.
I have a question. How do I go about selecting an item of a Spinner from a variable?

Currently I do this:

Code:
Dim Valor1 as string
Valor1=Cursor1.Getstring("Col1")
ListaValor.SelectedItem(Valor1)

Generates an error when trying to run it
 
thnks...

1.- Is String
2.-
Code:
Parsing code.                           0.03
Compiling code.                         Error
Error compiling program.
Error description: Array expected.
Occurred on line: 95
ListaValor.SelectedItem(Variables.EP_VALOR)
Word: (

In that line the error
 
Upvote 0
I need to do it that way, because the value displayed by the Spinner, always depend on other value in the database.
 
Upvote 0
Back
Top