Business Function Specification
Source NameB0100009DesignerMark Ransom
Data Structure D0100009ProgrammerGary Brown
Function NameCompress Character StringSystem Code01
Function Category
Function Use
Revisions Log
DateProgrammerSAR NumberDescription
12/10/94Mark RansomCreated
1.Functional Description
1.1Purpose
This function is designed to take a character string as input and return a compressed version of that character string. It will return a string that will
include all capital alpha numeric characters and will exclude everything
else. It will also scrub the field and use it as a search field for the Address Book Master Search, the Name Search, and the Long Account Search
screens.
1.2Setup Notes and Prerequisites
.
All lower case characters will be converted to upper case.
If a 1 is sent in the Address Book Search flag then the first character will be checked for either a
'*', '%', or blanks. This function will then scrub the string so that the first character is
non-blank and if a '*' or a '%' is encountered then the routine will place a '%' for the first character to
be used in a selection criteria field. This option is not intended to be used in a data base field DC
on a AB Search Form.
'b7'b7
1.3Special Logic
2.Technical Specifications
2.1Parameters:
Data Item Data Structure Description I/ORequired Notes
ALPH szNameAlpha IRequired
DC szDescripCompressed ON/R
EV01 cABSearchMode IN/R If sent with a 1 then this is used from a search form.
2.2Related Tables
Table Table Description
2.3Related Business Functions
Source NameFunction Name
2.4Processing
D0100416 - Compress Description
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szNameAlpha | ALPH | char | NONE | NONE |
The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter
| ||||
szDescripCompressed | DC | char | NONE | NONE |
The compressed description contains the alpha name without slashes, dashes, commas, and other special characters. The compressed
| ||||
cABSearchMode | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cLanguageType | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. |
B0100009 Create Compressed Description |
None |