David Pexton <[EMAIL PROTECTED]> wrote:

> Does anyone know if it is possible using the calendar behavior in
> director 8.5 to deliver the day of the year using basystemTime from Buddy
> api when the user clicks on a day during any given month?

Hi David,

I don't know where basystemTime comes into this, but you could add the
following handler to your Calendar behavior:


on mouseUp(me)
  tWord = mySprite.pointToWord(the mouseLoc)
  tDate = value(myMember.text.word[tWord])
  if tDate and tDate < 32 then
    tDateList = myDateList.duplicate()
    tDateList.day = tDate
    
    tSave = myFullDayFlag
    myFullDayFlag = TRUE
    tDay = me.getWeekDay(tDateList)
    myFullDayFlag = tSave
    
    tSave = myFullMonthFlag
    myFullMonthFlag = TRUE
    tMonth = me.getMonthNames()[tDateList.month]
    myFullMonthFlag = tSave
    
    put tDay&", "&tMonth&&tDateList.day&&tDateList.year
  end if
end mouseUp



You might want to tweak it a bit so that it does exactly what you want.

Cheers,

James


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to