I,ve got everything up and running software and hardware.
First project test. Everyhing displaying on device but the Button_Click not working on program.
Any help would be appreciated.
Thanks
Rob
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Velocity")
End Sub
Sub Button1_Click
Dim miles As Int
Dim yards As Int
Dim result As Int
result = miles + yards
End Sub
What do you expect from the Button1_Click event ?
The code you post below will do nothing.
Did you set the values of the miles and yards variables somewhere ?
What do you want to do with the result variable.
The best way to help you would be to post your whole project with 'Export As Zip' in the IDE and attach the zip file.
Klauss
The miles yards and result are text boxes.
Basicaly I want to click calculate button when I fill in the amounts to the miles and yards text boxes with the total amount shown in the result text box
Rob
Sub Button1_Click
Dim miles As Int
Dim yards As Int
Dim result As Int
miles = edtMiles.Text
yards = edtYards.Text
result = miles + yards
edtResult.Text = result
End Sub
He does not need to Dim it, as none of his code references any of the buttons properties, but "Dim"ing it would not stop it working as I claimed. It is late :sign0013: