RETURN
→ RETURNThe value standing for the Return key — exactly the same value as `ENTER`.
RETURNRETURN and ENTER are both 'Enter'. They are two names for one key — Apple machines label it Return, others Enter.
Bopa ships both names. Using either one behaves identically.
Note:
RETURNis notbusa.busais the Bopa keyword that hands a value back out of a function.RETURNis a key on the keyboard. They are written differently — one in capitals, one in lower case — and Bopa’s translation is case-sensitive, so the two never collide.
The name stays English for the same reason as ENTER: it is printed on the key itself.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 200);
tlhalosa('Mokwalo o o supang gore ditaetsi tse pedi tse di bidiwang ka mabedi ke selo se le sengwe. Tobetsa setshwantsho pele.');
}
tiro tshwantsha() {
bokamorago(238);
tlatsaMmala(40, 60, 90);
bogoloJwaMokwalo(18);
rulaganyaMokwalo(BOGARE);
fa (taetsiETshwerwe(RETURN)) {
thalaMokwalo('RETURN e tshwerwe', 200, 100);
} gongwe {
thalaMokwalo('Tshwara ENTER', 200, 100);
}
}