Hi Guys,
I'm still super new to B4A. I'm frustrated with the excessive rules for variable scope. I just want to populate a few spinner controls at application startup. One is the number of months 1 to 12 and the other is the number of days 1 to 31. When I run my program I get the following error:
B4A version: 5.20
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. Error
Unassigned variable: 'i'
Error File: data_input.bal
Go to the designer script page to debug this error.
Sub Process_Globals
Sub Activity_Create(FirstTime As Boolean)
Then in the Script - General in my designer for the "Data_Input" activity I have the following:
for i = 1 to 12
next
for intCounter = 13 to 31
'All variants script
AutoScaleAll
Thank you very much for your help,
Christian Blackburn
I'm still super new to B4A. I'm frustrated with the excessive rules for variable scope. I just want to populate a few spinner controls at application startup. One is the number of months 1 to 12 and the other is the number of days 1 to 31. When I run my program I get the following error:
B4A version: 5.20
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. Error
Unassigned variable: 'i'
Error File: data_input.bal
Go to the designer script page to debug this error.
Sub Process_Globals
Public i As Int
i = 0
End Subi = 0
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Data_Input")
End SubThen in the Script - General in my designer for the "Data_Input" activity I have the following:
for i = 1 to 12
spnBirth_Month.Add(i)
spnBirth_Day.Add(i)
spnBirth_Day.Add(i)
next
for intCounter = 13 to 31
spnBirth_Day.Add(i)
next'All variants script
AutoScaleAll
Thank you very much for your help,
Christian Blackburn