Android Question Date dialog

albertocpp

Member
Licensed User
Longtime User
Hello,
In an application I use the date dialog to select a date (Dialogs version 2.92)
Depending on the version of Android that has a calendar appears right . Also show the day, month, year with the corresponding buttons "+" and "-".
Is there any way to make this calendar never appears, regardless of the version of Android the device on which the application runs?
thanks
 

Kintara

Member
Licensed User
Longtime User
I too had this problem, but it is now solved thanks to this forum.

Add Dialogs Library to the project
You can then use the following to stop the full calendar from apprearing.

Sub DateInput
Dim Dd As DateDialog
Dim strDate as String
Dim ret As Int
Dd.ShowCalendar = False
Dd.Year = DateTime.GetYear(DateTime.now)
Dd.Month = DateTime.GetMonth(DateTime.now)
Dd.DayOfMonth = DateTime.GetDayOfMonth(DateTime.now)
ret = Dd.Show(Prompt, Title, "Ok", "Cancel", "", Null)
strDate= DateTime.Date(Dd.DateTicks)
If ret=DialogResponse.Cancel Then
strDate= OrigDate
EndIf
Return strDate
End Sub

also works for the DateDialog in the Dialog Library 2.9.2
 
Upvote 0
Top