anOparator Active Member Licensed User Longtime User May 5, 2015 #1 Am trying to create a password, load it into a Process_Global for future use, and start a second activity. Currently the second activity only starts when EditText is empty. Also can a Process_Global be shown in the Log? Thanks in advance for any pointers. Attachments psswdTEST.zip psswdTEST.zip 8.9 KB · Views: 240
Am trying to create a password, load it into a Process_Global for future use, and start a second activity. Currently the second activity only starts when EditText is empty. Also can a Process_Global be shown in the Log? Thanks in advance for any pointers.
anOparator Active Member Licensed User Longtime User May 6, 2015 #2 I tried this: Log ((pss)) ' did not generate log output info. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 6, 2015 #3 A process global variable can be printed with Log. Upvote 0
DonManfred Expert Licensed User Longtime User May 6, 2015 #4 anOparator said: Log ((pss)) ' did not generate log output info. Click to expand... cause you did not set any content to pss at this point you printed into the log. It WILL be printed; but only a blank line in log in your case Upvote 0
anOparator said: Log ((pss)) ' did not generate log output info. Click to expand... cause you did not set any content to pss at this point you printed into the log. It WILL be printed; but only a blank line in log in your case
anOparator Active Member Licensed User Longtime User May 6, 2015 #5 Thanks, the log works now. Will update in the A.M. Sleepy now. Upvote 0
anOparator Active Member Licensed User Longtime User May 6, 2015 #6 anOparator said: Thanks, the log works now. Will update in the A.M. Sleepy now. Click to expand... Thanks, I needed to ask someone b4 the answer came to me. Code: Sub Process_Globals Dim pss As String Code: Sub Globals Private pssw As EditText Private Button1 As Button Private Button2 As Button User creates personal password. Code: Sub Button1_Click 'Creates password ' pssw.Text = pss pss = pssw.Text StartActivity(openAspects) 'Activity 2 starts. OK Log ("NEW psswd saved " & (pss)) End Sub Logs in with personal password. Code: Sub Button2_Click ' If pssw.Text=pss Then If pss = pssw.Text Then StartActivity(openAspects) Log ("logged in , a-ok" & (pss)) Else Msgbox("WRONG PSSwurd ENTERED","E R R O R") End If Next, save pss to a predetermined spot in a text file Upvote 0
anOparator said: Thanks, the log works now. Will update in the A.M. Sleepy now. Click to expand... Thanks, I needed to ask someone b4 the answer came to me. Code: Sub Process_Globals Dim pss As String Code: Sub Globals Private pssw As EditText Private Button1 As Button Private Button2 As Button User creates personal password. Code: Sub Button1_Click 'Creates password ' pssw.Text = pss pss = pssw.Text StartActivity(openAspects) 'Activity 2 starts. OK Log ("NEW psswd saved " & (pss)) End Sub Logs in with personal password. Code: Sub Button2_Click ' If pssw.Text=pss Then If pss = pssw.Text Then StartActivity(openAspects) Log ("logged in , a-ok" & (pss)) Else Msgbox("WRONG PSSwurd ENTERED","E R R O R") End If Next, save pss to a predetermined spot in a text file