THANKS...
Enclosed is a sample project ... 10 lines in all!
in Process_globals I put the variable that should be the parameters received from the home of the smartphone / tablet.
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
' these are the parameters that should be received from outside
Dim param1 As Int
Dim param2, param3 As String
param1=0
param2="txtxtx1"
param3="txtxtx2"
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.
Dim Button1 As Button
Dim Button2 As Button
Dim Button3 As Button
Dim Button4 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
If param1=0 Then
Activity.LoadLayout("amain0")
End If
If param1=1 Then
StartActivity(actmain1)
End If
If param1=2 Then
StartActivity(actmain2)
End If
If param1=3 Then
StartActivity(actmain3)
End If
End Sub
Sub Activity_Resume
'Here we start listening for SensorChanged events.
'By checking the return value we knoe if the sensor is supported.
If param1>0 Then
Activity.Finish
End If
End Sub
Sub Activity_Pause (UserClosed As Boolean)
'Stop listening for events.
End Sub
Sub Button1_Click
StartActivity(actmain1)
End Sub
Sub Button2_Click
StartActivity(actmain2)
End Sub
Sub Button3_Click
StartActivity(actmain3)
End Sub
Sub Button4_Click
Activity.Finish
End Sub
in VisualFoxPro (similar VisualBasic!) :
do p15
or p15 do with 0, "", ""
do p15 do with 1, "", ""
do p15 with p15 2, "", ""
p15 do with 3, "txtxtx1", "txtxtx2"
From the attached picture:
If I click on P15 = no parameters
If I click on p15_1 = send parameters 1 and empty string1 and string2
If I click on P15_2 = send parameters 2 and string1 and string2 empty
If I click on p15_3 = send parameters 3 and string "txtxtx1" and string "txtxtx2"
Question:
If this were possible, how can I install with the application icons p15_1, P15_2, p15_3 so they send their parameters?
The link/icon P15 is automatically created from install process.
Thanks again and sorry if I was not clear.
Ciao
Enrico