browse keys (@bk)
Jay R. Ashworth
jra at baylink.com
Tue Jul 20 10:31:44 PDT 2004
On Tue, Jul 20, 2004 at 12:31:25PM -0400, Kenneth Brody wrote:
> "Jay R. Ashworth" wrote:
> [...]
> > > > Happens it will; I just tested it: even if you press "X", what you get
> > > > back in @BK is "x".
> > >
> > > @BK will contain the keystroke you pressed, and will retain the case that
> > > you typed.
> > >
> > > If I press a lower-case letter, @BK contains that lower-case letter. If
> > > I press a capital letter, @BK contains the capital letter.
> >
> > I just tested it: it doesn't work that way. @BK was lower case, even
> > when I typed an upper case letter.
>
> ==========
> ::end:
> @entsel::show "\r T \r - test brwlook w/ xkey":
> ::end:
> @keyT::ky = "":
> ::lookup zip = zipcodes k=ky i=A -nx b="(brw=12 xkey=abcdef fill=asc)*1
> *2 *3 ":
> ::clearb:
> ::mesgbox "@bk='" & @bk & "' @sk='" & @sk & "'":
> ::end:
> ==========
>
> If I press 'a', @BK is "a". If I press 'A', @BK is "A".
I tested it with something like
:@bk eq "x":show popup "little x";end:
:@bk eq "X":show popup "BIG X";end:
And I got little x both ways; we aren't trying to say that "eq" isn't
case sensitive, are we?
> [...]
> > > > But more importantly, how come "=" is acceptable on an IF line?
> > >
> > > Because you can't have assignments on an if line, so "=" is available to
> > > unambiguously mean "check for equality".
> >
> > Noted. But that doesn't explain why I *can't* use the traditional
> > companions thereto (>, <, etc), which is the real question.
>
> Because those still have the "normal" filePro meaning, even on an IF line.
Yeah. I see it. I'd have gone for consistency, I think, and outlawed
"=" too, but maybe it's just me.
Cheers,
-- jra
--
Jay R. Ashworth jra at baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274
"You know: I'm a fan of photosynthesis as much as the next guy,
but if God merely wanted us to smell the flowers, he wouldn't
have invented a 3GHz microprocessor and a 3D graphics board."
-- Luke Girardi
More information about the Filepro-list
mailing list