我有这个APEX触发器并且我收到此错误但不确定原因"错误:编译错误:期待左尖括号,找到' oppcntctrle'在第13栏第10栏"
{{1}}
答案 0 :(得分:1)
而不是
final String TAG = this.getClass().getName();
private static int SPLASH_TIME_OUT = 4000;
private TextView saying;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
//this.requestWindowFeature(Window.FEATURE_NO_TITLE);
supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_splash_screen);
saying = (TextView) findViewById(R.id.saying);
Typeface mainHead = Typeface.createFromAsset(getAssets(), "fonts/emporo.TTF");
saying.setTypeface(mainHead);
//Set text custom font for subhead text
new Handler().postDelayed(new Runnable()
{
@Override
public void run()
{
// This method will be executed once the timer is over
// Start your app main activity
Intent i = new Intent(SplashScreen.this, HomeScreen.class);
startActivity(i);
// close this activity
finish();
}
}, SPLASH_TIME_OUT);
}
}
应该是
String query = "insert into TeachersInfo (\"First Name\",\"Last Name\",UserName,Password) values (?,?,?,?)";
相同
for (List oppcntctrle :[select OpportunityId from OpportunityContactRole where (OpportunityContactRole.IsPrimary = True and OpportunityContactRole.OpportunityId in :oppty_con.keySet())])
应改为
List<OpportunityContactRole> oppcntctrle = [select OpportunityId from OpportunityContactRole where (OpportunityContactRole.IsPrimary = True and OpportunityContactRole.OpportunityId in :oppty_con.keySet())];