S
Simon Harvey
Hi all,
I thought that if I declared an Enum as follows:
public enum RolesEnumeration{
GlobalAdmin = 0,
PrincipalTrialInvestigator = 1,
TrialManager = 2,
AssistantTrialManager = 3,
GroupCoordinator = 4,
GroupTrialManager = 5,
GroupDataManager = 6,
ClinicalResearchAssistant = 7,
StudyManagementCommittee = 8,
PrincipalSiteInvestigator = 9,
SiteCoInvestigator = 10,
SiteStudyNurses = 11,
Patient = 12,
IndustryUser = 13,
Others = 14,
LabResearcher = 15,
DataAndEthicsMonitoringCommittee = 16
}
Then I could make a statement like:
if(roleID <= RolesEnumeration.GolbalAdmin){
....
At the moment though, the compiler is telling me that:
Operator '<=' cannot be applied to operands of type 'int' and
'spirit.secure.RolesEnumeration'
Can anyone see what I've done wrong? I know its going to be something
totally obvious but I cant see it!
Thanks all
Simon
I thought that if I declared an Enum as follows:
public enum RolesEnumeration{
GlobalAdmin = 0,
PrincipalTrialInvestigator = 1,
TrialManager = 2,
AssistantTrialManager = 3,
GroupCoordinator = 4,
GroupTrialManager = 5,
GroupDataManager = 6,
ClinicalResearchAssistant = 7,
StudyManagementCommittee = 8,
PrincipalSiteInvestigator = 9,
SiteCoInvestigator = 10,
SiteStudyNurses = 11,
Patient = 12,
IndustryUser = 13,
Others = 14,
LabResearcher = 15,
DataAndEthicsMonitoringCommittee = 16
}
Then I could make a statement like:
if(roleID <= RolesEnumeration.GolbalAdmin){
....
At the moment though, the compiler is telling me that:
Operator '<=' cannot be applied to operands of type 'int' and
'spirit.secure.RolesEnumeration'
Can anyone see what I've done wrong? I know its going to be something
totally obvious but I cant see it!
Thanks all
Simon