Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: len cockram
  Where is len cockram?
 SHEPPARTON
 Australia
 len cockram
 To: len cockram
  Where is len cockram?
 SHEPPARTON
 Australia
 len cockram
 Tags
Subject: Fixed thanks
Thread ID: 21972 Message ID: 21991 # Views: 16 # Ratings: 0
Version: Visual FoxPro 7 Category: Forms
Date: Monday, April 07, 2003 10:13:51 AM         
   


> > > > Dear sirs
> > > >
> > > > Have a database and want to search on two fields Have created a form with 2 textboxes and search on each of the fields using the textboxes and keypress procedure All works beautifully However the key pressed and the field data both show in the textbox How do i stop the key pressed from displaying
> > > >
> > > > Regards len cockram
> > >
> > > Put a NODEFAULT statement after your code in the KeyPress event to supress the default behaviour (ie. The character typed being added to the textbox)
> > >
> > > Cheers,
> > > Jamie
> > > jamie.osborn@foxite.com
> > Dear jamie
> >
> > Have given it a try Exactly where does the nodefault statement go According to help it looks like "procedure keypress nodefault" have tried this and "procedure keypress this_access nodefault" to no avail
> >
> > Tks
> >
> > Len cockram
> Dear jamie
>
> If you put the nodefault after the local parameters it works which is beaut but it also takes out "tab" etc to move between controls How else can i move between controls pls
>
> Regards len cockram
Put nodefault in an "if" "endif" and it works

Tks len cockram

COMPLETE THREAD