Download Inscribe User's Guide

Transcript
The module generates letters using the file TEMPLATE.TXT as a template. For
each call to the Letter procedure, the module matches the value of the student
ID parameter to the student name and address in the ADDRESS.TXT file.
8. Examine the resulting three letters created in the tutorial directory:
w
w
w
JACKSON.TXT for student ID 123456789 (John Jackson)
HARTIG.TXT for student ID 888888888 (August Hartig)
SMITH.TXT for student ID 345678901 (John Smith)
Note
In this tutorial, all development occurs in the same directory that stores the database.
However, you may choose to develop your SBL scripts in a location other than your
database directory. If so, copy all the .SBX files to your database directory before you
execute these scripts from a Scalable SQL application. This ensures that Inscribe can
locate all the modules.
When Inscribe loads a module in a Scalable SQL database, all the public functions and
procedures defined in that module, except for the Main subprogram, are automatically
registered. Inscribe does not register Main subprograms for two reasons:
u
u
Multiple modules can contain Main subprograms. If Inscribe did not ignore the
Main subprogram definition, Inscribe would generate duplicate definition errors.
Because Main subprograms are ignored, they provide a convenient place for
inserting debugging code that tests the other functions and procedures in the
module.
Inscribe User’s Guide
84
Inscribe Tutorial