M maryam2027 New Member Dec 21, 2018 #1 hi i want to show date and time in label. my code is : Private Label1 As Label Private Label2 As Label End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("main") DateTime.DateFormat="dd MMM yyyy" Label1.Text=DateTime.Date(DateTime.Now) DateTime.TimeFormat="hh:mm" Label2.Text=DateTime.Time(DateTime.Now) when i compile it there is no errors but when i want to run it on my phone the app was stopped working
hi i want to show date and time in label. my code is : Private Label1 As Label Private Label2 As Label End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("main") DateTime.DateFormat="dd MMM yyyy" Label1.Text=DateTime.Date(DateTime.Now) DateTime.TimeFormat="hh:mm" Label2.Text=DateTime.Time(DateTime.Now) when i compile it there is no errors but when i want to run it on my phone the app was stopped working
Erel B4X founder Staff member Licensed User Longtime User Dec 23, 2018 #2 Please use [code]code here...[/code] tags when posting code. maryam2027 said: when i compile it there is no errors but when i want to run it on my phone the app was stopped working Click to expand... There must be an error message in the logs. You need to find it and post it. Upvote 0
Please use [code]code here...[/code] tags when posting code. maryam2027 said: when i compile it there is no errors but when i want to run it on my phone the app was stopped working Click to expand... There must be an error message in the logs. You need to find it and post it.
G goomoo Member Licensed User Longtime User Apr 22, 2022 #3 I will make the date and time grow automatically. Is there any way to do it? Upvote 0
teddybear Well-Known Member Licensed User Apr 23, 2022 #4 goomoo said: I will make the date and time grow automatically. Is there any way to do it? Click to expand... You have to add a timer for refreshing date and time you would like to show. Upvote 0
goomoo said: I will make the date and time grow automatically. Is there any way to do it? Click to expand... You have to add a timer for refreshing date and time you would like to show.
Johan Schoeman Expert Licensed User Longtime User Apr 23, 2022 #5 goomoo said: I will make the date and time grow automatically. Is there any way to do it? Click to expand... Use a timer Upvote 0
goomoo said: I will make the date and time grow automatically. Is there any way to do it? Click to expand... Use a timer