![]() ![]() Today I would like to share my solution on how to build a view to display a date range like it is used in group calendar applications. You can find a lot of stuff on the internet like Chris Blatnick’s ” Using Color Columns To Make A Gantt Chart” to display column values either as color or as picture ( you might take a look at “ A Splash of Color” as well ). If you happen to travel to the year 1700 using a time machine, be careful when planning a meeting at the end of February … By the way, you get the same error when replacing the 1700 by 1500, 1400, 1300, 11. I guess that some subroutines deep in the core code are not sure which calendar to use Gregorian or IBM calendar. You might want to try the next piece of code and watch what happens …Īn error message occurs, stating that there is a “Type mismatch”. Seems that IBM / Lotus uses another calender than the Gregorian calendar. Set dt = New NotesDateTime( Datenumber( 1700 ,3, 1) ) I tried the same using LotusScript and the NotesDateTime class I expected a 28 in the message box, but it prompted 29 ! Oups … If the resulting date is Feb., 29th, the year is a leap year. So the easiest method to determine a leap year is to set the date to March, 1st of the given year and “substract” one day. In LotusScript as well as with you can “adjust” a given date to another date depending on the parameters you use. You can find numerous examples in almost every programming language of how to determine if a year is a leap year or not. So, in the last millennium, 16 were leap years, but 1700, 18 were not. If it is divisible by 100 it can only be a leap year if that year is also divisible by 400. This is implemented by making every year divisible by 4 a leap year unless that year is divisible by 100. The Gregorian calendar, the current standard calendar in most of the world, adds a 29th day to February in 97 years out of every 400, a closer approximation than once every four years. Msgbox atServerAccess ( sAction, sUser, sServer )Ģ008 is a leap year again. Here is a sample of how to call the function ![]() + |" "| + sServerName + |")|) atServerAccess = Cbool(vAccess(0)) SAction As String, sUserName As String, sServerName As String ) As Boolean The following function uses evaluate and to make the available in LotusScript. In this case, the Evaluate statement is your friend.įor further information about how to use Evaluate I recommend to read the following article on DeveloperWorks: “ Simplifying your LotusScript with the Evaluate statement” ![]() For a list of keywords to represent the access level you want to check for take a look at the designer help either on your local client or on the web.īut what to do if you want to check the server access level using Lotus Script? The help document does not give you a cross reference to Lotusscript. You can use to check if a specified user has a specified administrative access level to a server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |