OSAddressInVARRAY: VARRAY element index is too large

Have an app based on MS Office Library, in the main form (with MS Word embedded object) → querysave event → keep validation code :

If note.IsNewNote And note.txtClassifiers(0) = “” Then

DataOK=False

Do While note.txtClassifiers(0)="" Or DataOK=False

Messagebox "You must enter a classifier"

DataOK= wks.DialogBox("frmClassifiers", True, True, False, True, False, False, "Classifiers",,True)

Loop

End If

no problem generating one (1) doc, but, when i add a new one and the code calls the dialogbox method got the panic error.

I have tested this in another database and same result (guessing the nsf file was corrupt).

All post found about this error are about server crashes but no one about notes client crashing, the database is a local one.

Thanks in advance

Leo

Subject: OSAddressInVARRAY: VARRAY element index is too large - SOLVED

Put the same code in the QUERYCLOSE event instead of querysave and no problem… no panic error… no red box… any BLOODY idea which is the diference???