shankar_r
9 years agoCommunity Hero
Increased workspace font size, All outlining gone
Very disappointed after changing the font size of the workspace (Tools --> Options --> Panels --> Code editor --> Display).
We are having more then 300 to 400 functions and all functions are properly aligned. And we did outlining for each functions for better readability. After changing the font size of the editor window, I'm not able to find even a single Outlining. :(
is fromDate passed as a string? If so, you can't call the setDate method. You need to convert the string to a date time and then user associated methods.
For that matter, there is built in functionality in test complete for manipulating dates. Try the following.
function addWorkDaysToDate(fromDateString, days){ var fromDate = aqConvert.StrToDate(fromDateString); var count = 0; while (count < days){ fromDate = aqDateTime.AddDays(fromDate, 1); if ((aqDateTime.GetDayOfWeek(fromDate) !=1) && (aqDateTime.GetDayOfWeek(fromDate) != 7)){ count++ } } return aqConvert.DateTimetoStr(fromDate); }