#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
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
Private Ename As Label
Private Lage As Label
Private Tname As EditText
Private Tage As EditText
Private Sdata As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Lyloggedin")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Sdata_Click
If Tname.text = "" Then
Msgbox("Please Enter Name","")
Return
Else
Dim OP As String
OP = Main.a.Query("INSERT INTO testnew (Name, Age) OUTPUT Inserted.ID VALUES(" & Tname.Text &", "& Tage.Text &")SELECT SCOPE_IDENTITY()")
OP = ""
Msgbox("Data Submitted Successfully","")
End If
End Sub