VA FileMan V. 22.0 Getting Started HTML Manual Banner


 

Main Chapter Getting Started Manual Programmer Manual

VA FileMan Functions


$J[USTIFY]

Format:
  1. $J(string,n)

  2. $J(n1,n2,n3)
Parameters:
  1. In the first format, string is a string expression; n is an integer representing width of field.

  2. In the seconf format, n1 is a numeric expression; n2 is an integer representing the width of field; n3 is the number of decimal places to output with the number.
Use:
  1. In the first format, the function returns string right justified within a field that has a width of n. If string is longer than n, there is no truncation.

  2. In the second format, the function returns n1 right justified in a field that has a width of n2. There will be n3 decimal places to the right of the decimal point.
Example:

$J(NAME,20) =>

            Smith,Al 

[12 spaces preceding the 'S']

"$"_$J(PRESCRIPTION COST,8,2) =>

$   25.88 

[3 spaces preceding the '2']

 


Reviewed/Updated: March 4, 2007