December 2018
Beginner
210 pages
5h 7m
English
The following example implements a simple algorithm, finding the longest common substring of two given strings.
Start writing the code for creating the FindLongestCommonSubstring function, then change its return type and add two text parameters:
LOCAL PROCEDURE FindLongestCommonSubstring(S1 : Text[100];S2 : Text[100]) Substring : Text;
The text variables S1 and S2 in the function declaration have limited lengths; they are declared as Text[100]. The length of a text variable is specified in the Length column in the variable declaration window.
Note the literal Substring in the function declaration line. This is a named return value. So far, we have assigned return types to functions and used the EXIT ...
Read now
Unlock full access