CompressCharacterString

Create Compressed Description

Minor Business Rule

Object Name: B0100009

Parent DLL: CFIN

Location: Client/Server

Language: C

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 



Data Structure

D0100416 - Compress Description

Parameter NameData ItemData TypeReq/OptI/O/Both
szNameAlphaALPHcharNONENONE

The text that names or describes an address. This 40-character alphabetic field appears on a number of forms and reports. You can enter 
dashes, commas, and other special characters, but the system cannot search on them when you use this field to search for a name.

szDescripCompressedDCcharNONENONE

The compressed description contains the alpha name without slashes, dashes, commas, and other special characters.  The compressed 
description is the field used in the Name Search.

cABSearchModeEV01charNONENONE

An option that specifies the type of processing for an event.

cLanguageTypeEV01charNONENONE

An option that specifies the type of processing for an event.

Related Functions

B0100009 Create Compressed Description

Related Tables

None