Form Clearing and List Implementations?

Hey,

A really newb question but is there a command to clear a form (ie. delete all its contents)?

I’m assuming there must be, but cant manage to google it and i’ve left all my textbooks at university? ::slight_smile:

Secondly, im nearly there with the implementation of my crossword game but have found a problem with the way my sony ericsson T610 implements it.

The viewing of the clues is based around an IMPLICIT list that i add 2 commands to ‘back’ (self explanatory) and ‘view’ which loads a form holding the clue.

This works fine on other devices but my sony adds a ‘select’ command to the list screen as im told most nokia’s do.

How do i get at using this command? I’ll simply switch the functionality of the view command to this ‘select’ one as i have to demonstrate my game using my own phone but dont know how to code this?

i currently use the standard:



if(c == view){

//code to load form


}

within commandAction to get at the view command.

Thanks in advance for all your help, will post a beta test URL soon!

Cheers

Rich

This is the code I use when I create a new or repopulate an existing form.


    if (validationForm==null)
      {
      // validation failed
      validationForm = new Form("Validation");
      validationForm.addCommand(okCommand);
      validationForm.setCommandListener(this);
      }
    else
      {
      // clear out the current menu
      while (validationForm.size()>0)
        {
        validationForm.delete(0);
        }
      }

Cheers wooD,

The code works a treat, cheers mate!

Now just need to know how to access the functionality of buttons that my phone’s profile adds, as opposed to me specifically adding them in my code (see above).

Thanks for all your help guys, my dissertation thanks you!

;D

Cheers

Rich