Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CTRL+Y on Browse window does not work

Status
Not open for further replies.

kdealba

Programmer
Jul 8, 2009
2
MX
Hello, I have this problem with "browse" command. The CTRL+Y keys for adding new records do not work. I have attached a little project with just one form. Try it and you'll get the whole picture. Just run the "main" program.

I know it is an old fashioned way of doing things, but I'm changing from old foxpro 2.5 for DOS to VFP, and there's a bunch of programms using browse. I hope you will understand. Thanks in advance
 
You gotta practice posting attachments, Tek-Tips demands a URL in the internet, a file on your harddrive does not work, as tek-tips does not provide webspace to upload files.

Besides that, I can make two guesses: Before VFP8 it was rather CTRL+T IIRC, not CTRL+Y, but even if you use VFP9, that Hotkey depends on the table menu being present. You can have that same functionallity by designing a menu having the _MTB_APPND system menu item in it.

In the menu designer choose 'Bar #' for the menu item, then _mtb_append right to it, click in the options and set the Hotkey to CTRL+Y

Bye, Olaf.
 
is it a cursor? is the cursor readwrite? or read only?

Ali Koumaiha
TeknoPCS Inc.
Dearborn heights, MI 48127
 
Also, the AllowAddNew property must be set to .T.

This is the default setting, and it's unlikely to have changed, given that you have to go out of your way to access the browse window as an object. It's more likely, as Ali sys, that the underlying cursor or table is read-only.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
As for the attachement... I was not aware of the right procedure of doing this. I am now.

As for my question it was already answered and proceed in the best (and quickiest) possible way. I added a procedure for adding records (with APPEND BLNK) when down key was pressed and the end of file was reached. The main problem with this procedure was the forced validation of some fields, but we managed to change that into an alternate way of validation and it worked out pretty well.

Again, thanks all of you for your kind help. As a VFP programmer (an endangered species) I will be back soon.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top