13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The CONCAT FunctionCONCAT accepts any practical number of string expressions and returns astring value that is their concatenation. It is written like this:CON CATThus CONCAT creates a new string out of a series of existing strings. Hereare three examples:FNAME := CONCAT CFNAME, '.TEXT'>; {Adds .TEXT to end of filename}ADDR3 := CONCAT CCITY, STATE, ZIP>; ; {Pluralizes part designation}The COPY FunctionCOPY accepts a string expression and two positive integer expressions withvalues in the range 1 to 255:COPY CSTRING, START, COUNT>It returns a new string value which is a copy of STRING beginning at theSTART index number and extending for COUNT characters.The INSERT ProcedureINSERT accepts a string variable identifier, a string expression, and apositive integer expression:INSERT CSUBSTRING, STRING, START>It inserts the value of SUBSTRING into the variable STRING, beginning atSTART. The first character of SUBSTRING becomes the START indexcharacter of the result, and the index numbers of all subsequent charactersof STRING are increased by the value of ST ART.You can insert SUBSTRING at the end of STRING by using for START theexpression LENGTH (STRING) + 1.String OperationsIII-97

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!