CSPro Syntax Wall Cards skip to AGE skip
- Slides: 69
CSPro Syntax Wall Cards
skip to AGE; skip to next;
if then else if AGE < 5 then skip to UNDER_FIVE; else skip to FIVE_AND_OVER; endif;
comparison = Equal <> Not equal < Less than > Greater than <= Less than or equal >= Greater than or equal in In range (AGE in 10: 15)
comments // Rest of line comment {Multi-line comment}
ask if AGE > 3;
logical operators and (both true) or (either true) not (not true->false, not false->true)
curocc(); curocc(ADULTS 000);
noinput;
endgroup;
endlevel;
pos p = pos(“A”, “APPLE”);
errmsg(“Hello”); errmsg(“Age is %d”, AGE); errmsg(“Name is %s”, NAME); %d Display number as integer %f Display number with decimal %s Display text string
reenter; reenter AGE;
strip s = strip(NAME);
getlabel s = getlabel(SEX_VS 1, SEX); s = getlabel(SEX_VS 1, 1);
errmsg with select errmsg(“Mother too young”) select(“Fix age”, AGE, “Fix relationship”, RELATIONSHIP);
warning(“Mother too young”) select(“Fix age”, AGE, “Fix relationship”, RELATIONSHIP, “Ignore”, continue);
Arithmetic + * / % ^ Addition Subtraction Multiplication Division Remainder Exponentiation
datediff dd = datediff(DATE_OF_BIRTH, DATE_OF_INTERVIEW);
variables numeric number. Of. Kids; alpha[30] name. Of. Mother; string name. Of. Mother;
Subscripts SEX(1) AGE(3) SEX(CHILD_MOTHER)
special values notappl (blank/skipped) missing (9, 999…) default (read error)
totocc(ADULTS 000);
setocclabel(PERSON(i), NAME(i));
do loop do i=1 while i < 10 if AGE(i) < 5 then under 5 s = under 5 s + 1; endif; enddo;
count num. Adults = count(ADULTS); under 5 s = count(ADULTS where AGE < 5);
seek index. Head = seek(RELATIONSHIP = 1);
tr s = tr(“Message to translate”);
maketext msg = maketext( “%s is %d years old”, NAME, AGE);
setcaselabel(MYDICT, “my case label”);
setvalueset(RELATIONSHIP, RELATIONSHIP_MALE); setvalueset(RELATIONSHIP, codes, labels);
array mynumbers(10); array string mystrings(50); array mymatrix(5, 5);
length n = length(NAME);
getocclabel(PERSON(i));
loadcase found = loadcase(VILLAGE_DICT, PROV, DIST);
forcase DISTICT_DICT do codes(next. Entry) = DISTRICT_CODE; labels(next. Entry) = DISTRICT_NAME; next. Entry = next. Entry + 1; endfor;
user functions function is. Under 5(index) is. Under 5 = AGE(index) < 5; end;
userbar(clear); userbar(show); id = userbar(add button, “Go”, go); userbar(remove, id);
accept choice = accept(“Finished? ”, “Yes”, “No”);
advance to AGE;
move to AGE; move to AGE advance;
showarray string people. Array(30, 3); showarray(people. Array, title(“Name”, “Age”, “Sex”));
visualvalue a = visualvalue(AGE);
systime t = systime(“HHMM”);
sysdate d = sysdate(“YYYYMMDD”);
setproperty(END_TIME, "Can. Enter. Not. Appl", "No. Confirm"); setproperty(PROVINCE, "Protected", "Yes");
timestamp t = timestamp();
execsystem (Windows) execsystem(“calc. exe”); execsystem( “explorer. exe myreport. html”, maximized, wait);
execsystem (Android) execsystem( “app: com. google. android. gm”); execsystem( “view: myphoto. jpg”); execsystem( “camera: myphoto. jpg”);
getos if getos() in 20 then errmsg(“Android”); endif; if getos() in 10 then errmsg(“Windows”); endif;
pathname s = pathname(Application); s = pathname(Temp); s = pathname(CSEntry);
filedelete(“myfile. dat”);
fileexist if fileexist(“myfile. dat”) then … endif;
gps gps(open); gps(read, 60, 10); gps(latitude); gps(longitude);
setfile tempfile; setfile(tempfile, “myfile. dat”);
filewrite file tempfile; filewrite(tempfile, “hello”); filewrite(tempfile, “hello %s”, NAME);
close(tempfile);
stop(0); // back to case list stop(1); // back to app list
execpff(“myapp. ent”, wait); execpff(“myapp. ent”, stop);
sysparm value = sysparm(“KEY”);
tonumber n = tonumber(“ 12. 5”);
savesetting(“Interviewer. Name”, INTERVIEWER_NAME));
loadsetting string name = loadsetting( “Interviewer. Name”);
syncconnect synconnect(CSWeb, “https: //www. server. com”); synconnect(Bluetooth);
syncdata(PUT, MYDICT);
syncfile(PUT, “/localpath/file. txt”, “serverpath/”); syncfile(GET, “/serverpath/file. txt”, “serverpath/”);
syncdisconnect();
syncserver() syncserver(Bluetooth, “/path/to/root”);
- Totocc
- Census and survey processing system
- For skip pointer, more skip leads to
- Stone age, bronze age iron age timeline
- Iron age bronze age stone age timeline
- What are source cards
- Syntax directed translation example
- One and half brick wall
- Members used to carry wall loads over wall openings
- Word wall vs sound wall
- The wall of ovary develops into wall of fruit called
- Chris brown wall
- Victorian age and modern age
- Romanticism vs victorianism
- Neolithic period timeline
- Paleolithic age vs neolithic age
- "age of trilobites" or "age of fish".
- Premature adrenarche
- Sangrihitri during the vedic age was
- Mining skip
- Skip list python
- Define skimming in communication
- Money mangement international
- Skip pointers
- Skip coleman
- Skip the games
- Randomized skip list
- Skip through the seasons
- טבלת גיבוב
- Phillips plastics corp
- 14 15 16 17 18
- Dan benson new balance
- Concurrent skip list
- Mail @ greenbuildingencyclopaedia.uk
- Skip pointers in information retrieval
- Skip rochefort
- Skip graph
- Pant i skip
- Skip counting number line
- Project scoping
- Mining skip
- Which is a good idea for using skip pointers
- Skip list
- Skip osu
- Skipdraw
- Skip graph
- Benefits of scanning reading
- Libero score sheet
- Concept cards examples
- Red queen card game
- Point of view task cards
- Acme toy company prints baseball cards
- Emotive greeting cards
- Court cards
- Civil war trading cards project
- Armando bought 45 baseball cards
- Presentation note cards
- Reciprocal reading cards
- Crc card diagram
- Expansion slots on motherboard
- Infohio
- Wilson reading system sound cards
- Flash cards with bell
- Tccc scenario cards
- Single digit multiplication flash cards
- Xbxo gift cards
- Quadrilateral task cards answer key
- Brivo card reader
- Credit card statement worksheet answers
- Envision business cards