Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid values on page2 are seen on page1
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid values on page2 are seen on page1
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01454098
Message ID:
01454098
Views:
143
I'm using VFP 9 and I have a form with a pageframe with 3 pages. The main form to be filled in is on page1. The other 2 pages are support pages to be used to get data to be transferred to certain textboxes on page1 if user is unsure or introduce non accepted values. Example: you enter a code of a supplier in a textbox on page1 and if the code does not match any data in the cursor with data gathered from a sql table, page2 is set to be automatically active. On page2 there are a number of textboxes, one grid and command buttons. If the wanted supplier can be found in the grid and the row containing information is highlighted you can either press enter or double click on the wanted grid row and the information is collected and transferred to an array used for the textboxes on page1 and page1 will also be activated. The code for doing this is placed on the Grid events DblClick and KeyPress. Exactly the same code is used (the only difference is the "if nKeyCode=13 ..endif" used in the KeyPress event). The problem is that if I use the KeyPress event the grid information (the whole grid) on page2 can be seen on page1 and when I go along, filling in other textboxes on page1, there is a refresh and most of the data from the Grid is disappeared. Actually all object on Page1 will be free from page2 information except for the area of page1 itself. However, when I use the DblClick event it works fine. No traces of the Grid on page2 can be seen. I have tried with a lot of Refreshing where ever I can but nothing seems to work. Is there someone who have any idea about the cause of my problem?
Next
Reply
Map
View

Click here to load this message in the networking platform