Editing
Technical-Specification
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== 3.5 primesui === <pre>PROGRAM primesui USING primes-ui EVALUATE TRUE on ui-methods WHEN start-ui β PERFORM r90-start-primesui WHEN write-ui β PERFORM r92-write-primesui WHEN message-ui β PERFORM r98-message-ui WHEN stop-ui β PERFORM r99-stop-primesui WHEN OTHER β MOVE 1 TO ui-method-result END-EVALUATE EXIT PROGRAM ββ r90-start-primesui βββββββββββββββββββββββββββββββββββββββββββββββ OPEN OUTPUT fprinter (primes.prt) IF primes-prt-status = "00" THEN SET primes-idx TO 1 MOVE 0 TO ui-method-result LOG "Open printer Ok" ELSE MOVE 1 TO ui-method-result DISPLAY primes-prt-status ON console ββ r92-write-primesui βββββββββββββββββββββββββββββββββββββββββββββββ t-ident(primes-idx) = u-sequence β load into current cell t-prime(primes-idx) = u-number SET primes-idx UP BY 1 β advance index IF new-page THEN PERFORM r93-new-page β heading + column header IF primes-idx = 7 THEN β 6 entries filled WRITE file-buffer FROM primes-table β 132-char data line SET primes-idx TO 1 IF linage-counter = 53 THEN β 3 lines from page end PERFORM r94-eop β footing + page increment ββ r93-new-page βββββββββββββββββββββββββββββββββββββββββββββββββββββ WRITE primes-heading (="primes overview") WRITE table-header (="Sequence Prime " Γ 6) MOVE ZERO TO print-new-page β clear flag ββ r94-eop ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ WRITE blank line WRITE primes-footing (right-aligned "page: ZZZZ9") ADD 1 TO page-number MOVE 1 TO print-new-page β trigger heading on next write ββ r98-message-ui βββββββββββββββββββββββββββββββββββββββββββββββββββ DISPLAY process-message UPON scherm β program-name + paragraph + message ββ r99-stop-primesui ββββββββββββββββββββββββββββββββββββββββββββββββ MOVE 0 TO u-sequence MOVE 0 TO u-number PERFORM r92-write-primesui UNTIL new-page β flush partial line with zeros LOG "close printer" CLOSE fprinter MOVE primes-prt-status TO ui-method-result</pre> ----- <span id="database-connection-parameters"></span>
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information