Bt_MakeName() Function

 

<< Click to Display Table of Contents >>

Navigation:  Support Functions >

 

Bt_MakeName() Function

 

Previous pageReturn to chapter overviewNext page

 

Purpose

 

 

Get valid VO field name from Btrieve field name

 

 

 

Prototype

 

 

FUNCTION Bt_MakeName ( cField AS STRING )  AS STRING PASCAL

 

 

 

Argument(s)

 

 

<cField>is a Btrieve field name.

 

 

 

 

Return

 

 

STRINGValid Visual Objects field name.

 

 

 

Description

 

 

Converts a table field name to a Visual Objects field name by converting all special characters to underscore '_' and trimming the name to ten characters.

 

 

 

Example(s)

 

 

? BT_MAKENAME('SS#')

SS_

? BT_MAKENAME('sales$%tax')

SALES__TAX