Introduction Getting Started CED Features CED Commands Index

VFIND command

Syntax: VFIND "variable-name"[,starting-line]

(or)

VFIND variable-name[,starting-line]

Discussion: VFIND locates and displays source lines containing the specified MTB variable name.

The internal search logic is very straightforward. The VFIND command examines the character immediately preceding and the character immediately following the specified search string. If either of those characters contains a number, letter, single quote, or double quote, the string is skipped (i.e., it's not an MTB variable name). Likewise, if the character immediately following the search string contains a dollar sign, the string is skipped. Otherwise the search could return string variable names when you were trying to find numeric variable names (A versus A$, for example).

Also see:
FIND
VBRIGHT
VSEEK
VREPLACE

Examples:
  VFIND "I"     finds all occurrences of the variable named I

  VFIND I       finds all occurrences of the variable named I

  VFIND A$      finds all occurrences of the variable named A$