hi all,
Is powerbuilder monthcalendar control able to do date start and date end selection as similar like picture below ?
thanks,
Dev Ong
hi all,
Is powerbuilder monthcalendar control able to do date start and date end selection as similar like picture below ?
thanks,
Dev Ong
EVENT : dateselected
INTEGER li_return
DATE ld_temp
IF ib_st = False and ib_ed = False THEN
li_return = mc_1.GetSelectedDate ( id_start )
ib_st = True
ELSEIF ib_st = True and ib_ed = False THEN
li_return = mc_1.GetSelectedDate ( id_end )
li_return = mc_1.SetSelectedRange(id_start, id_end)
ib_ed = True
IF id_start > id_end THEN
ld_temp = id_start
id_start = id_end
id_end = ld_temp
SetNull(ld_temp)
END IF
st_start.text = String(id_start)
st_end.text = string(id_end)
ELSEIF ib_st = true and ib_ed = true THEN
li_return = mc_1.ClearBoldDates()
ib_st = False
ib_ed = False
li_return = mc_1.GetSelectedDate ( id_start )
ib_st = True
END IF
Please advise what going wrong ?
Some questions/suggestions I do have for you to consider are: (1) Provide some details regarding the actual begin/end dates you are testing so that others can replicate the conditions. (2) Perhaps you could also provide a more detailed description of the behavior that more clearly explain the phrase "it becomes crazy" -- what does that mean? (3) It ALWAYS helps everyone to know the version, release and build of PowerBuilder that you are using up front, so please provide this information whenever you ask a question.