metrick Active Member Licensed User Longtime User Feb 14, 2011 #1 I am new user. How do I declare and use B4A DateDialog (Dialogs)? I have copy the latest Dialogs.jar and Dialogs.xml to Libraries folder. Thanks in advance.
I am new user. How do I declare and use B4A DateDialog (Dialogs)? I have copy the latest Dialogs.jar and Dialogs.xml to Libraries folder. Thanks in advance.
klaus Expert Licensed User Longtime User Feb 14, 2011 #2 In the IDE in the lower right corner click on the Libraries Tab. Check the Dilalogs library. In Sub_Globals declare Dim Dialogs1 As DateDialog Then you can use it, have a look at the Dialogs help. Best regards. Upvote 0
In the IDE in the lower right corner click on the Libraries Tab. Check the Dilalogs library. In Sub_Globals declare Dim Dialogs1 As DateDialog Then you can use it, have a look at the Dialogs help. Best regards.
metrick Active Member Licensed User Longtime User Feb 14, 2011 #3 Thanks, Klaus. How can I add Dialogs to Designer's Add View list? I want to create a date dialog input for user to select date and use the date for calculation. Upvote 0
Thanks, Klaus. How can I add Dialogs to Designer's Add View list? I want to create a date dialog input for user to select date and use the date for calculation.
specci48 Well-Known Member Licensed User Longtime User Feb 14, 2011 #4 Hello metrick, the dialogs from the dialog library cannot be added with the designer. Just take a look at the sample program agraham delivered with his library (DialogsDemo). I also added a very small project that asks for a date and shows it on a label. specci48 Attachments Test-DateDialog.zip Test-DateDialog.zip 6.2 KB · Views: 1,086 Upvote 0
Hello metrick, the dialogs from the dialog library cannot be added with the designer. Just take a look at the sample program agraham delivered with his library (DialogsDemo). I also added a very small project that asks for a date and shows it on a label. specci48
metrick Active Member Licensed User Longtime User Feb 18, 2011 #5 Thanks Specci48. How can I calculate number of days between two dates using date picker like DATEDIFF function in VB or just using date pickers? Upvote 0
Thanks Specci48. How can I calculate number of days between two dates using date picker like DATEDIFF function in VB or just using date pickers?
Erel B4X founder Staff member Licensed User Longtime User Feb 18, 2011 #6 You can calculate the number of days between two dates (stored as ticks) with: Code: Dim NumberOfDays As Long NumberOfDays = (Date2 - Date1) / DateTime.TicksPerDay Upvote 0
You can calculate the number of days between two dates (stored as ticks) with: Code: Dim NumberOfDays As Long NumberOfDays = (Date2 - Date1) / DateTime.TicksPerDay
metrick Active Member Licensed User Longtime User Feb 20, 2011 #7 Thank you, Erel: I wish that B4A HelpViewer come with working examples. After many hours of playing with DateTime object I got it. Upvote 0
Thank you, Erel: I wish that B4A HelpViewer come with working examples. After many hours of playing with DateTime object I got it.