mercredi 4 mai 2011

How to display the list of years in lookup

Take a combobox in the form and make autodeclaration to yes for that combobox...

In the form init write the code as

public void init()
{
    int             i,curyear;
    ;
    super();
    for(i= 0 ; i<=10; i++)
    {
        curyear = 2011 + i;
        ComboBox.insert(int2str(curyear),i);
    }

}

Follow this link to get more information about lookup.

Aucun commentaire:

Enregistrer un commentaire