Mike,
Thanks, that solved it... but a bit later in the session, when I was
testing another block of code, and noticed an identical statement
to the original problem worked fine, so I tried the old code that I
posted and it worked as well; I don't know what to think. I guess if
you want to be safe don't use & and abbreviated commands under
that construct.
JM,
You're right... using F12 you don't need to map to [Enter]. I also
tried mapping [F1] to [F12] and using lastkey(0) was able to pop up
my secondary form (if lastkey(0) = '[f12]' ) rather than RBase help...
My customers don't use RBase help and F1 is more intuitive
Ben Petersen
On 13 Sep 2001, at 11:04, MikeB wrote:
> Sel colnm1, &vID into var1, var2 from TableNm whe ID = .vID
> I had no joy until I expanded both the Sel and the whe to Select and Wher
> and set the ampersand variable to a dotted variable.
> Select colnm1, .vID into var1, var2 from TableNm wher ID = .vID
>
> ----- Original Message -----
> From: "Ben Petersen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 13, 2001 2:36 AM
> Subject: & Syntax
>
>
> > Hi all,
> >
> > I developed an app under RBW6.1a that includes this select:
> >
> > Sel colnm1, &vID into var1, var2 from TableNm whe ID = .vID
> >
> > under 6.1a this is fine, under 6.5+ I get:
> > "An expression cannot begin with a binary operator", refering to
> > &vID.
> >
> > Has anyone else noticed this?
> >
> > Thanks,
> >
> > Ben Petersen
> >
> >
> >
> >
>
>
>