Labels Conflict w/ filePro Commands
Bob Stockler
bob at trebor.iglou.com
Wed May 26 11:21:14 PDT 2004
On Tue, Nov 04, 2003 at 10:13:35AM -0500, Jay R. Ashworth wrote:
| On Tue, Nov 04, 2003 at 09:41:45AM -0500, Joe Chasan wrote:
| > > Why am I interested in this? I'm writing a Perl program
| > > that does more than my AWK "ck.syn" program to check for
| > > other than errors made by people using 'vi' to create or
| > > edit processing tables.
| > >
| > > It can find all sorts of name conflicts, not reported by
| > > the dcabe syntax check, that night cause problems in the
| > > processing at run time.
| > >
| > > I want to know if this is a real or imagined problem.
| >
| > not sure how far you want to go with this - but of course lookup aliases
| > and declared variables can conflict with filepro commands.
| >
| > i remember one time long ago i was writing an application for a trade
| > show supplier, and i aliased a lookup to their reference file of trade
| > shows as "show" - i must have stared at the table for hours trying to
| > figure out some wierd syntax errors i got when fp got confused.
|
| This was running through my head, as well. I believe that labels and
| alias tags live in separate namespaces, and I *suspect* that alias tags
| *will* conflict, even if labels don't -- and Bob? Did you only test
| the ability to *use* "reserved words" as labels (in field 1), or did
| you also set some such labels to values, and try to *test* their values
| (in field 2)?
Again, it's been a long while, but I don't believe I checked
if a Label was a filePro command. Among things I report are:
Label "name" is used n times (Lines: n, nn, nnn, nnnn).
Label and Array have the same Name: "label"
Line: nnnn - Label "nameeeee" is too long (n characters).
Line: nnnn - Label "na" is too short (n characters).
Line: nnnn - Label "na%me" contains illegal character(s).
Line: nnnn - Illegal, mispelled or incomplete Label: "@wlf"
Line: nnnn - Array Name "name" is a filePro command.
Line: nnnn - Declared Variable "name" is a filePro command.
Line: nnnn - Alias_Type[1] Alias Name "name" is a filePro command.
[1] - "Alias_Type" may be an alias to a "Real Field" or "Dummy Field"
Bob
--
Bob Stockler - bob at trebor.iglou.com
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).
More information about the Filepro-list
mailing list