Hello,
In my program I need to execute others activities / layouts to the user select some items and then continue the program.
See example:
code ......
code .......
' here I need to show to the user another layout to select an item
If REG_PEGA_PREPARO = 1 Then
StartActivity("Pega_Preparo") ' layout to the user select an item
End If
code ......
code .......
' here I need to show the user another layout to select another item
If REG_PEGA_PESO = 1 Then
StartActivity("Pega_Peso") ' layout to the user select another item
End If
code ......
code .......
' then with de data selected by the user, program continues...
My problem is that when I execute StartActivity("Pega_Preparo"), code continues till end of the Sub.
But I need code to wait for StartActivity("Pega_Preparo") be closed to program continues.
How to do this job ?
Regards
In my program I need to execute others activities / layouts to the user select some items and then continue the program.
See example:
code ......
code .......
' here I need to show to the user another layout to select an item
If REG_PEGA_PREPARO = 1 Then
StartActivity("Pega_Preparo") ' layout to the user select an item
End If
code ......
code .......
' here I need to show the user another layout to select another item
If REG_PEGA_PESO = 1 Then
StartActivity("Pega_Peso") ' layout to the user select another item
End If
code ......
code .......
' then with de data selected by the user, program continues...
My problem is that when I execute StartActivity("Pega_Preparo"), code continues till end of the Sub.
But I need code to wait for StartActivity("Pega_Preparo") be closed to program continues.
How to do this job ?
Regards