I have a lookup table like so...
Then when I post it I only need the left digit example 1 or 2 or 3. I remember a left$ function in VB>
Thanks in advance, Mike
B4X:
Sub SpinnerFill
Spinner1.Clear
Spinner1.Add("Select account type")
Spinner1.Add("1, Cash")
Spinner1.Add("2, Assets-Current ")
Spinner1.Add("3, Assets-Other")
Spinner1.Add("4, Liability-Current")
Spinner1.Add("5, Liability-Other")
Spinner1.Add("6, Capital")
Spinner1.Add("7, Income")
Spinner1.Add("8, Cost_of_Sales")
Spinner1.Add("9, Expense")
End Sub
Thanks in advance, Mike