LoadBPVFromFile loads a two column comma delimited file where the first column is a date and the second column contains a numeric value. Most often the user will created BPV Auto-Index enable Numeric Series. However, this function will support a BPV Auto-Index String Series.
Think of the process this way:
1.All BPV series element values are initialized at the time of creation with the default value the user allows in the series creation.
2.The BPV will contain the values located in the second column for any test.currentDate locations that match a date record from the loaded file.
3.The series’ default value at a test.currentDate location will be found when a matching date wasn’t found in the loading file.
Syntax: |
---|
LoadBPVFromFile(fullPathFileString, numericSeriesBPVname) |
Parameter: |
Description: |
---|---|
fullPathFileString |
The drive's letter and full path to the folder that contains the named file.
The file information needed to a load a file must be in the String that contain the fullPathFileString parameter text. That parameter needs the text information to find and then load the two-column file. In that string variable, the full-Path-name plus the File-name must match an actual directory's path location where the file name including its suffix is located (see the below example's "Setup the path for the file to Load into a BPV" section for how it might be obtained.) |
numericSeriesBPVname |
BPV Auto-Index enabled numeric series.
During the file loading process, all test.currentDate locations that match a loaded file record date will contain the loaded file's second column value at the test.currentDate date location that matched a record in the loaded file. When the loaded file does not have a date record for a test.currentDate value, the initialize BPV Auto-Index enable Numeric Series value won't be changed from its previous initialized value. |
Example: |
---|
==================================================================== ' https://tinyurl.com/y7slhqrl ' |
Returns: |
Example above returns the annual sequence count of each of the ten US-Federal Holidays show next: ...[SNIP] 20141111 is Holiday#: 8 Veterans Day 20141127 is Holiday#: 9 Thanksgiving Day 20141225 is Holiday#: 10 Christmas Day 20150101 is Holiday#: 1 New Year Day 20150119 is Holiday#: 2 Martin Luther King Jr. Day 20150216 is Holiday#: 3 Presidents Day (Washingtons Birthday) 20150525 is Holiday#: 4 Memorial Day 20150703 is Holiday#: 5 Independence Day 20150907 is Holiday#: 6 Labor Day 20151012 is Holiday#: 7 Columbus Day 20151111 is Holiday#: 8 Veterans Day 20151126 is Holiday#: 9 Thanksgiving Day 20151225 is Holiday#: 10 Christmas Day 20160101 is Holiday#: 1 New Year Day 20160118 is Holiday#: 2 Martin Luther King Jr. Day 20160215 is Holiday#: 3 Presidents Day (Washingtons Birthday) 20160530 is Holiday#: 4 Memorial Day 20160704 is Holiday#: 5 Independence Day 20160905 is Holiday#: 6 Labor Day 20161010 is Holiday#: 7 Columbus Day 20161111 is Holiday#: 8 Veterans Day 20161124 is Holiday#: 9 Thanksgiving Day [SNIP]... |
Links: |
---|
See Also: |
Edit Time: 9/21/2020 2:38:31 PM |
Topic ID#: 696 |