Hi, I Have a Problem that when I create button manually,events doesnt work at all ,
here is the code
Sub Globals
Dim Generate As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Generate.initialize("")
Generate.Text="Generate"
Activity.AddView(Generate,Dimension.Left-14%x,Dimension.Top+Dimension.Height,20%x,45dip)
End Sub
Sub Generate_Click
Msgbox("Dimension number should be started from number 2 At Least","Notice")
End Sub
Please use [code]code here...[/code] tags when posting code.
1. Use the visual designer.
2. You've set the event name to an empty. You should set it to Generate: