>I have a transaction .scx, in that i had placed two combo box namely 1.datefrom 2.dateto. when i load the form i want all the dates of the current month will display in the combo box.
>
>How to do this?
Just an example:
_SCREEN.ADDOBJECT('cbo1','combobox')
_SCREEN.cbo1.VISIBLE = .T.
lnYear = YEAR(DATE())
lnMonth = MONTH(DATE())
FOR lnDay = 1 TO DAY(GOMONTH(DATE(lnYear,lnMonth,1),1)-1)
_SCREEN.cbo1.ADDLISTITEM(TRANSFORM(DATE(lnYear,lnMonth,lnDay)),lnDay)
ENDFOR
HTH
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]