Dab tsi yog cov ntaub ntawv muaj nyob hauv Apex programming?
Dab tsi yog cov ntaub ntawv muaj nyob hauv Apex programming?
Anonim

Apex yog ib hom ntawv zoo heev, yam khoom-oriented programming lus. Ib yam li lwm tus programming lus, Apex muaj ntau yam hom ntaub ntawv uas koj siv tau. 1). Keeb kwm Hom - Qhov no hom ntaub ntawv xws li String, Integer, Long, Ob, Decimal, ID, Boolean, Hnub, Hnub, Lub Sijhawm thiab Blob.

Ib yam li ntawd, tib neeg nug, pes tsawg hom ntaub ntawv muaj nyob hauv Salesforce?

Cov ntaub ntawv sib txawv hauv Salesforce Lub tsib cov ntaub ntawv sib txawv hauv API: ID. Txoj hlua. Boolean.

Tsis tas li ntawd, hom ntaub ntawv twg yog ID? Cov ntaub ntawv hom

Hom ntaub ntawv Cov ntaub ntawv tus nqi
NTEXT Txog li 4000 bytes ib kab hauv UTF-8 cim encoding. Hom ntaub ntawv no sib npaug rau NCHAR thiab NVARCHAR2 cov ntaub ntawv hom hauv cov ntaub ntawv.
ID Txog li 8 tus cim ib kab hauv cov cim database

Ib yam li ntawd, koj tuaj yeem nug, cov ntaub ntawv sib txawv yog dab tsi?

Qee yam hom ntaub ntawv suav nrog integers, floating point tooj, cim, hlua, thiab arrays. Tej zaum lawv kuj yuav hais meej dua hom , xws li hnub tim, timestamps, boolean qhov tseem ceeb, thiab varchar ( sib txawv tus cwj pwm) formats.

Dab tsi yog qhov txawv txav hauv Salesforce?

Variable Scope Variables tuaj yeem txhais tau ntawm txhua qhov chaw hauv ib qho thaiv, thiab coj mus thaj tsam los ntawm qhov ntawd mus tom ntej. Sub-blocks tsis tuaj yeem rov txhais ib sib txawv lub npe uas twb tau siv nyob rau hauv ib tug niam txiv thaiv, tab sis parallel blocks yuav rov siv tau a sib txawv npe.

Pom zoo: