Here is a strange behavior I've tried to isolate in a short
reproduction code but unsuccessfully.
So, sorry if I refer to a "long" code here:
http://groups.google.com/group/micro...e=source&hl=fr
See inside comments for "explanations".
Often, when I just start PS console and just launch
.\gadget-calendar
current day isn't highlighted.
I thought to have found a fix (if you read full thread I mentionned)
but it isn't.
I've seen that executing the same command several times gives the same
behavior (bug ?).
So, doing something like :
(1..100)|%{.\gadget-calendar;sleep -m 500}
As it's a sporadic behavior the range could be larger to see the
behavior (see image file joined to this message).
Problem seems to be with the following condition not always correctly
treated :
if($_.Trim() -eq (get-date $strdate).Day)
But why (and/or what do I wrong) ... that's the question(s) :-)
As hollidays are coming I'm not sure to have time to follow this thread
"in real time" (but I'll try).
So, if someone found something to submit on Connect (s)he's free to do.
TIA
Regards,
--
Jean - JMST
Belgium


