Hi, I have scenario where I am adding a temporary records to ListBox (list of files) when user navigates to particular dialog. Now, I also need to remove these temp entries if user chose to navigate back, change something & come back to this dialog again.
I tried this, but it gives me exception with "Cursor state is invalid" or similar message. The CA is written in managed code (using DTF) existingFilesView = session.Database.OpenView( string.Format(CultureInfo.InvariantCulture, "SELECT * FROM ListBox WHERE Property='{0}'", PropertyNames.DatabaseBackupFileName)); if (null != existingFilesView) { existingFilesView.Execute(); existingBackupFileRecord = existingFilesView.Fetch(); while (null != existingBackupFileRecord) { existingFilesView.Modify(ViewModifyMode.Delete, existingBackupFileRecord); existingBackupFileRecord = existingFilesView.Fetch(); } } Appreciate help/pointers. Thanks. Ajay ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users