Wednesday, March 13, 2019

NOSPACE

Table of Contents ] [ List of Example Programs ] [ NOSPACE Disk Image ]

NOSPACE is an example program (Listing 9-4) on page 116 of the book "Pascal Primer" by David Fox and Mitchell Waite.

This example program shows how to use intrinsic Pascal STRING functions and procedures. The POS() function will return the starting position of a string within a string. The DELETE() procedure will remove a string from within a string. The LENGTH() function returns the number of characters in a string.



The link command looks like:

LINKER V1.0
*D2:NOSPACE,PASLIB/S

When you run the program, it looks like:


No comments:

Post a Comment