Vanguard Software
Forecasting & Planning Solutions

contents.gifindex.gifprev1.gifnext1.gif

form

Format: form( template, values, fill )

Arguments: (text) template Block of text describing the format of the output text

[any] values List of values for each fill field

(text) fill Optional character used to define fill fields; default = "^"

Returns: (text) Block of text similar to the template argument with all fill fields replaced by the corresponding elements in values

Description: Form is used to create formatted output. The template argument contains all text that will appear on the output plus a string of fill characters (e.g., ^^^^) wherever a fill field appears. Each element in the values argument is converted to a text string and substituted for the corresponding fill field. If the text string is longer than the corresponding field, the text is truncated.

Form is designed to be complementary to the dialog input primitive. Use the say, write, or append primitives to cause the block of text created to be output.

Examples: form("Name: ^^^^^^^^  Age: ^^^", ["Rob",29]) =
Name: Rob       Age: 29

See Also: dialog, say, write, append

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Analysis  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2009 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend