> > Hi Samir,
> >
> > IF LASTKEY() <> 13 AND LASTKEY() <> 9 AND LASTKEY()=151 AND LASTKEY()<>51
> >
> > is working with set confirm on
> >
> > Although 51 is the ascii of "3"
> >
> > Also I have a question to all sometimes for lastkey() the ascii values are common as in this case how to overcome this problem?
> >
> > I have already face this problem.
> >
> > Regards
> > Bhushan Sahni
> > Millenium Softwares
> >
bhushan_sahni@yahoo.com> >
> > Visual Foxpro a dream house for developers
>
> I dont think so. Becaz. inkey have unique acsii value for every chr
>
> Anil
>
My BlogHi Anil,
You are not correct this time atleast. ;-)
Try this.
?inkey(0)
and then press ALT+D
see the result you will get 32 which is the ascii value of space bar.
Regards
Bhushan Sahni
Millenium Softwares
bhushan_sahni@yahoo.comVisual Foxpro a dream house for developers