neilkidds
1st March 2010, 07:52
In a customized session, "month" is a field on form which need to be input. I want to set current month as its default value.
I know there is a "defaul value" feild when you maintain a form feild, but do not know how to set. Could someone help me?

vahdani
1st March 2010, 09:34
Hi,

use something like this:

declaration:
extern long month |month on form

long year, day |Temp. variables

form.1:
init.form:
num.to.date(date.num(), year, month, day)

baan.kmurali
1st March 2010, 13:41
1.Goto EDIT form.
2.Open the form field where you want to display the current date
3.Mark the default option and write as "date" in the default input box.

Regards/Murali

neilkidds
8th March 2010, 04:02
Resolved. Thank you for help.