Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Created September 8, 2013 20:58
Show Gist options
  • Save msrivastav13/6488359 to your computer and use it in GitHub Desktop.
Save msrivastav13/6488359 to your computer and use it in GitHub Desktop.
public class winter14Ctrl {
public String AccountName{ get; set; }
public integer hello{ get; set; }
public Date fDate { get; set; }
public string email{get;set;}
public string phone{get;set;}
List<String> lstAccounts;
public List<String> getAccounts() {
lstAccounts=new List<String>();
for(Account acc:[Select Id ,Name from Account Limit 1000]){
lstAccounts.add(acc.name);
}
return lstAccounts;
}
public void setAccounts(List<String> s) {
this.lstAccounts=s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment