The script contains the following information:
A sample statement written in the calling routine.
Variables set in the calling routine and passed to the Spread function.
Variable names in the calling routine set to be the same as the Spread function.
Sub Calculate() Dim Destination Dim Source Dim Factor Dim FactorN Dim FactorD Dim Temp Dim Per Source = "A#Telephone.C1#[None].P#[Year]" Destination = "A#Telephone.C1#[None]" Factor = "A#Factor.C1#[None]" FactorN = "E#Globals.A#Profile445.C1#[None].P#CUR" FactorD = "E#Globals.A#Profile445.C1#[None].P#[Year]" Temp = "A#TempTelephone.C1#[None]" Per = "January" Call Spread(Destination,Source,Factor, FactorN,FactorD,Temp,Per) End Sub ' Beginning of the Spread function Sub Spread(Destination,Source,Factor,FactorN,FactorD,Temp,Per) If HS.Period.Number = 1 Then HS.Exp Temp & " = " & Source End If HS.Clear Factor HS.EXP Factor & " = " & FactorN & " / " & FactorD HS.Clear Destination HS.EXP Destination & " = " & Temp & ".P#" & Per & " * " & Factor End Sub