Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <apex:page controller="myController">
- <apex:outputText value="{!total}"/>
- </apex:page>
- public with sharing class myController {
- private Integer total;
- public Integer getTotal() {
- total = [SELECT count() FROM Account]; // Example for standard Account objects
- return total;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement