- Learning Apex Programming
- Matt Kaufman Michael Wicherski
- 295字
- 2021-07-23 20:54:19
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "This means that it will not be possible to set the AnnualRevenue
variable to a string or IsCustomerPortal
to a date."
A block of code is set as follows:
trigger accountTrigger on Account (after insert, after update){ //Use the Boolean attributes to quickly determine where we are in the order of execution and what operation occurred. if ( trigger.isAfter && trigger.isInsert ){ for ( Account a : trigger.new ){ if ( a.Phone != null ){ system.debug(a.Phone); } } } if ( trigger.isAfter && trigger.isUpdate ){ for ( Integer i=0;i<trigger.size();i++ ){ if ( trigger.new[i].phone != trigger.old[i].phone ){ system.debug( trigger.new[i].phone +'!='+ trigger.old[i].phone ); } } } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
public with sharing class googleAuthorization_Controller { public string googleEmail {get;set;} //to store our code for dynamic rendering public string code {get;set;} //to store our user record public User u {get;set;} public googleAuthorization_Controller() { googleEmail = userInfo.getUserEmail(); }
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Click on the Setup link at the top-right of the Force.com GUI. Under the Customize section, click on Users (these are not in alphabetical order)."
- 垃圾回收的算法與實現
- iOS 9 Game Development Essentials
- 劍指JVM:虛擬機實踐與性能調優
- vSphere High Performance Cookbook
- Java Web及其框架技術
- H5頁面設計:Mugeda版(微課版)
- RocketMQ實戰與原理解析
- Learning WordPress REST API
- Visual C#(學習筆記)
- 可視化H5頁面設計與制作:Mugeda標準教程
- Tkinter GUI Programming by Example
- OpenStack Sahara Essentials
- ASP.NET 3.5系統開發精髓
- Ajax與jQuery程序設計
- 信息安全技術(第2版)