function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

VisualForce page - Syntax Error

I have a visualforce page that displays campaign member information (object that links the campaign and contacts). In the table I have the status column of the campgne member exposed as follows:
VF Page: 
  <apex:column headerValue="Statut">
                            <apex:selectList value="{!cmber.campMember.Status}" size="1" onchange="updateRecords();">
                                <apex:selectOptions value="{!StatusByCampaign[cmber.campMember.campaignid]}"/>

In my apex class: 

 public Map<String,List<SelectOption>> StatusByCampaign {
        get {
            Map<String,List<SelectOption>> StatusByCampaign = new Map<String,List<SelectOption>>();
            for (Campaign c: getCampaignIDList()){     
                StatusByCampaign.put(c.Id, getStatusItemsFromCampaign(c.Id));
            system.debug('--StatusByCampaign--' +StatusByCampaign);
            return StatusByCampaign;

   public List<SelectOption> getStatusItemsFromCampaign(String campId) {
        List<SelectOption> options = new List<SelectOption>();
        String query = 'SELECT Label FROM CampaignMemberStatus WHERE IsDeleted = false AND CampaignId = \'' + campId + '\'';
        List<CampaignMemberStatus> listCampId = Database.query(query);
        for (CampaignMemberStatus c: listCampId){
            options.add(new SelectOption(c.Label, c.Label));
        return options;

When Saving I have this error in my VF page: Erreur de syntaxe.  Valeur 'StatusByCampaign' trouvée
Can someone help me.  
Raj VakatiRaj Vakati
Cna you give me complete cod e?