190 likes | 308 Vues
This document provides a detailed agenda for Day 2 and Day 3 of a programming workshop focusing on essential topics related to data confidentiality, programming standards, and various programming constructs. It covers file types, execution order, conditional statements, numeric and string operations, user-defined functions, control flow, and debugging techniques. Participants will gain insights into data handling practices, best coding standards, and practical programming strategies to enhance their skills and ensure robust program development.
E N D
Miscellaneous Topics • Data confidentiality • Review file types • Online helps
Order of Execution • PROCs: • GLOBAL • Application • Level • Form • Roster • Field • Preproc • Onfocus • Killfocus • Postproc
Comments • Single-line comments: // • Multiple-line comments: { }
Conditional Statements • If, elseif, else • Operators: • Equal: = • Not equal: <> • Less than: < • Less than or equal to: <= • Greater than: > • Greater than or equal to: >= • In • Not, and, or
Skips • Reenter • Move • Skip • Next • Advance • Noinput
Freeform Text • Editnote • Getnote • Putnote
Numeric Operations • Operators: + - * / % ^ • Tonumber • Inc • Exp • Log • Sqrt • Low • High
String Operations • Substrings: [] • Length • Tolower • Toupper • Concat • Strip • Compare, < <= = > >= • Pos • Edit • Getlabel • Getoperatorid
Messages • Errmsg • Maketext • Formatting: • Integers: %d • Decimal fractions: %f • Strings: %s
Programming Standards • (handout)
Variables and Arrays • Explicit versus implicit compilation • numeric • alpha • array • array alpha
User-Defined Functions • function • exit • OnKey • OnStop
Looping • while • do • for • next • break
Recoding • recode / endrecode
Controlling Program Flow • Skips • endgroup • endlevel • stop • universe
Debugging and Tracing • trace • set trace