/// <summary> /// Gets the value of the field /// </summary> /// <returns></returns> protected override Variant GetValue() { try { Variant FValue = new Variant(); if (FData != null) { if (FField != null) { if (FData is ReportDataset) { if (((ReportDataset)FData).CurrentRowCount > 0) { FValue.AssignFromObject(((ReportDataset)FData).CurrentRow[FField]); } } else { FValue.AssignFromObject(FData.Rows[CurrentRow][FField]); } } } return(FValue); } catch { throw; } }