Eduardo Funabashi Member Licensed User Longtime User Mar 5, 2015 #1 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
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
NJDude Expert Licensed User Longtime User Mar 5, 2015 #2 You will have to "think" like Android and not like Windows, each activity is a separate process, so you have to adapt your code to that. Upvote 0
You will have to "think" like Android and not like Windows, each activity is a separate process, so you have to adapt your code to that.
Eduardo Funabashi Member Licensed User Longtime User Mar 6, 2015 #3 Any ideas to achieve this task ? Upvote 0
Devan Member Licensed User Longtime User Mar 6, 2015 #4 I think you should start new activity module than once user input back to main activity. Im still new to programming. Try to do more research or ask Erel. He knows better. Take care Upvote 0
I think you should start new activity module than once user input back to main activity. Im still new to programming. Try to do more research or ask Erel. He knows better. Take care
klaus Expert Licensed User Longtime User Mar 6, 2015 #5 As NJDude already said, you need to switch from top down programing to event driven programing. Depending on what data the user must enter the principle might be different. You should explain more in detail your problem to get concrete advices. Upvote 0
As NJDude already said, you need to switch from top down programing to event driven programing. Depending on what data the user must enter the principle might be different. You should explain more in detail your problem to get concrete advices.
JhoeyBoy Member Licensed User Longtime User Mar 2, 2018 #6 Hi, I would like to ask how to make a floating form same the attached picture. which the previous form is visible, it's like a modal form in windows applications. Joey Attachments Screenshot_2018-03-02-07-01-34.png 79.5 KB · Views: 555 Upvote 0
Hi, I would like to ask how to make a floating form same the attached picture. which the previous form is visible, it's like a modal form in windows applications. Joey
Claudio Oliveira Active Member Licensed User Longtime User Mar 2, 2018 #7 Take a look at this Upvote 0
MarkusR Well-Known Member Licensed User Longtime User Mar 2, 2018 #8 Joy Garcia said: Hi, I would like to ask how to make a floating form same the attached picture. which the previous form is visible, it's like a modal form in windows applications. Joey Click to expand... one possibility Code: Dim options As List = Array("Red", "Green", "Blue") InputListAsync(options, "Select Color", 0, False) Wait For InputList_Result (Index As Int) If Index <> DialogResponse.CANCEL Then Log("Selected color: " & options.Get(Index)) End If Upvote 0
Joy Garcia said: Hi, I would like to ask how to make a floating form same the attached picture. which the previous form is visible, it's like a modal form in windows applications. Joey Click to expand... one possibility Code: Dim options As List = Array("Red", "Green", "Blue") InputListAsync(options, "Select Color", 0, False) Wait For InputList_Result (Index As Int) If Index <> DialogResponse.CANCEL Then Log("Selected color: " & options.Get(Index)) End If
JhoeyBoy Member Licensed User Longtime User Mar 2, 2018 #9 Claudio Oliveira said: Take a look at this Click to expand... Thanks, for sharing... It helps a lot... Attachments giphy.gif 27.4 KB · Views: 441 Upvote 0
Claudio Oliveira said: Take a look at this Click to expand... Thanks, for sharing... It helps a lot...