macros - Open Office Base Form's record status -


i'm using openoffice base , basic macros control forms.

i used program microsoft access-basic , there things don't know correspondence in openoffice base macro basic.

how can retrieve current record status of form?
i mean status describes if record in edit-mode, view-mode or new-record mode.

in access basic these statuses described in single property specify whether record in:

  • editmode: when value of saved record changed, until hitting save.
  • newrecordmode: when fields empty in order user assign values of new record, until hitting save.
  • viewmode: when user preview record, without of above actions take place.

is there correspondence in openoffice base macro basic? there property or indicate these statuses?

after hours of researching, found answer on own:

oform = thiscomponent.drawpage.forms.getbyname("myform") oform.ismodified() (boolean edit mode) oform.isnew() (boolean newrecord mode) 

thanks anyway!


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -