Token_Pos()

<< Click to Display Table of Contents >>

Navigation:  Available Functions >

Token_Pos()

Syntax

Token_Pos( <CharacterField>, <Word>, <Delimiter> )

 

Purpose

To determine the starting character position of a specific word in a character field.

 

Parameters

<CharacterField> is the name of any character field in DonorQuest, such as the last or first name field.

 

<Word> is the number of the word to determine the starting position of.

 

<Delimiter> is usually a quoted space (" "). In general, <Delimiter> is whatever separates words within the field from which you wish to extract a single word. In most cases, words within fields are separated by a space, but you may also have fields in which commas or semicolons are used to separate words or groups of words.

 

Returns

A numeric value.

 

Usage

Token_Pos() currently has no direct application for the user in DonorQuest. It is an internal function which may become useful at the user level as the program is expanded.