Hi Mathias,

>>>(2) How can i test that the form is fully loaded?
>>No idea, sorry. What does that mean?
> 
> Sorry, i forgot the command oForm.moveToInsertRow(). :-(
> It seems so, that the database form makes a refresh after that command.
> But it seems also that it is fullfilled after oControl.setString(
> "myString" ), so that the string is always deleted again.

moveToInsertRow resets the content of the controls in the form to their
default value. So if you do a
  oForm.moveToInsertRow()
  oControl.setString( "myString" )
then this should normally work.

However, note that what you modify here is the control content, not the
content of the form field which the control is bound to. (AFAIK, the dev
guide should explain the difference). I suggest using
  oControl.BoundField.Value = "myString"
Else, you might have the problem that the "myString" is not properly
written into the database, since it's in the control only, not in the form.

You'll notice then that the form is modified after you set the
"myString" value. To get rid of this, do a subsequent
  oForm.IsModified = FALSE

HTH

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to