displays a graph (LENGTH columns wide) that represents the relative
frequency of characters found in the specified file; output is written to console.
Demonstrates functions on arrays, command
line parameters, formatting results, traversing
strings

emulates keyboard by entering data coming from a device connected through an Ethernet
Client Bridge (like Symbol CB1000). For the program to work correctly, it is necessary
that the device be configured so that it accepts connections from the PC where this
program is running. This program can be installed as a script for Proteus Service.
Demonstrates: socket functions,
keyboard emulation functions.

save to READINGS.MDB the data arriving from a device connected through an Ethernet
Client Bridge (like Symbol CB1000). For the program to work correctly, it is necessary
that the device be configured so that it accepts connections from the PC where this
program is running. This program can be installed as a script for Proteus Service.
Demonstrates: socket functions,
DAO functions.

verify that the number of open parenthesis ('(', '[', '{') matches the
number of closing parenthesis (')', ']', '}'); parenthesis inside strings are ignored. No
output file is produced; messages are sent to console. Demonstrates stacks, string functions, UDFs ONSTART and ONEND

change in each line the first date found from the format 'dd/mm/yy[yy]' to
the format 'dd mmm yyyy'; the date must use at least one of the separators in Seps (which
must also include ' '). Demonstrates functions on dates, the static tokenizer, the predefined
identifier MONTHS

change each date from the format 'dd/mm/yy' to the format 'dd mmm yyyy';
the date must use at least one of the separators in Seps (which must also include ' ').
Demonstrate the dynamic tokenizer,
REXMATCH, several string functions

use the function CRC32 to
calculate the 32 bit Ansi X3.66 cyclic
redundancy check on the first file specified; CRC is also calculated by padding file
to multiple of 128 and 1024 bytes with character ASCII 26

create a DBF file from a text file. The database has two character fields:
"CODE" (8 characters) and "DESC" (30 characters); the text file holds
CODE in the first 8 characters and DESC in the remaining characters. Data are sorted by
using an AVL before being inserted into the database. Demonstrates how to convert Proteus
numbers to WORD/DWORD and vice versa.

shows an example of Dynaset, obtained through a query on Sql Server. The code extract
all customers (CFANAGRA) whose documents (DOC) have in their rows (DOCRIGHE) a particular
article; the names of the customers found are saved to a text file, where each field is
separated from the next by the character "|". Demonstrates DAO
functions.

use the function CRYPT to encrypt the
file with the specified keys; if you need to specify more than one key, enclose them
between double quotes. Use decrypt.prt to
decrypt the files created by this script.

create a new file including all bookmarks found inside HTML files matching
specifications; this program was used to create an early version of the index ad the end
of the Proteus Manual. Demonstrates directory
functions, reading lines from files, REXMATCH
and several string functions

replace each space with two spaces; add: two spaces before and after each line, two
spaces after '(', two spaces after ')', two spaces before and after ','. When run against
a correct Proteus program, outputs a valid Proteus program that, when executed, produces
the same results as the original, except for strings (whose size increases).

convert a Proteus program (.prt) into a HTML file, adding tags for syntax
highlighting. The parameter "ISO" allow for PC 437 to ISO Latin 1 conversion
during formatting. This program was used to format all the examples in this manual; a
variant, that alphabetically sorts the HTML files produced and links one to the other, has
created the samples in this chapter

various tests with regular expressions. No input is used; output is sent
to console (alternated '1' and '0'). The interest lies in the contents, that show many
examples of simple and extended regular expressions

emulates keyboard (wedge emulation) by entering data coming from a serial
device (e.g. a barcode scanner). This program can be installed as a script for Proteus
Service. Demonstrates using SENDKEYS and serial ports.

verify if a file exists; if it is so and the file is writable (it is not
locked for update), process it by sending strings (e.g. commands to create a label on a
barcode printer) merged with data available in the file. The printer where data are to be
sent is specified by network address and port. Demonstrates using Socket functions.

compare a group of file recursively between two directory trees. Demonstrates how
Proteus is able to read both binary and text files, the usage of recursive functions and
accessing public variables from a UDF