private String displayRecordSetz(Cursor cursor) {
    String message = "";
    // populate the message from the cursor
    // int LongRow = cursor.getInt(DBAdapter.COL_OF_PARENT_WORKOUT_ID);
    /// String LongRowID = Long.toString(fromMainActivity.rowIDLong());
    // int IntRowID = Integer.parseInt(LongRowID);
    // Reset cursor to start, checking to see if there's data:
    if (cursor.moveToFirst()) {

      do {
        // Process the data:
        int id = cursor.getInt(DBAdapter.COL_HISTORY_EXERCISE_ID);
        String date2 = cursor.getString(DBAdapter.COL_DATETIME);
        int setNumberFromHistory = cursor.getInt(DBAdapter.COL_HISTORY_SETS);
        int repNumberFromHistory = cursor.getInt(DBAdapter.COL_HISTORY_REPS);
        long historyLongID = cursor.getInt(DBAdapter.COL_ROWID_HISTORY);
        // Append data to the message:
        // Toast.makeText(ArchieveHistory.this,
        // date2+fromHistoryActivity.ReturnDateFromCalendar()+message, Toast.LENGTH_LONG).show();
        if (date2 == fromHistoryActivity.ReturnDateFromCalendar()) {
          message +=
              " id = "
                  + id
                  + ", Sets =  "
                  + setNumberFromHistory
                  + ", Reps = "
                  + repNumberFromHistory
                  + ", date = "
                  + date2
                  + "\n";
          Toast.makeText(
                  ArchieveHistory.this,
                  date2 + fromHistoryActivity.ReturnDateFromCalendar() + message,
                  Toast.LENGTH_LONG)
              .show();
        }
      } while (cursor.moveToNext());
    }
    return message;
  }