>In my form i have put one command button namely "Generatemonth". when i click this command button, name of the twelve months i.e(starting from January to December) will added in month field of my test.dbf.
>
>How to do this?
cmonth() can give you the name of the month according to the language in which you installed Visual FoxPro (normally English). If you want another language, you better create your own user-defined function, that returns the month names. I did this for Spanish.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)