Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update a form from browsewindow
Message
From
14/02/2005 03:21:55
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00986405
Message ID:
00986528
Views:
30
Hi Kjell,

no pun intended, but please don't blame VFP for your lack of knowing how to do things in VFP. First of all Browse and a grid is one and the same, BROWSE is just a wrapper for a grid builder class. There's absolutely nothing you can do in a grid that you can't do in a grid. It may take some times to get used to all the features of the grid, but I am sure you will find the time worth it. For instance the AfterRowColChange event is perfect for updating other objects when you skip from record to record in the grid.

I suggest you try the grid builder with your form, and then you simply change the necessary PEMs to suit your need. To open the grid builder, you just place a grid on a form, right click and select Builder. Good luck.

>Because a browsewindow has so many builtin functions. The user can resize the window, change the columnwidth, change font/fontsize... you name it. You just print the command "BROWSE", and you have all functions direct!
>If I use a grid, it requires so much programming to get it work like I want.
>
>You sayed that I should put the grid on another page in a pageframe. But in that case I cant see the page with the selected fields at the same time. And thats the whole point with it, that the user can step through the table in a separate browsewindow, and AT THE SAME TIME se the detailed information in another window, record by record.
>
>/Kjell
>
>>Why don'y you put your grid and the fields on the same form or on sparate pages of the pageframe?
>>
>>>I have a problem that I cant get any solution on, and hope there are someone who can help me:
>>>I have a form (form1) where I show a selection of fields from a table. Then I also browse the table in a browsewindow.
>>>The problem is that when I step through the table in the browsewindow, I cant get any update in form1. I have tried to call form1.refresh from the browse valid clause, and it works if form1 is in modal mode. But I want the form to be i modless mode, and in that case I only get the message that form1 not can be found when Im stepping in the browsewindow.
>>>Are there a way to "link" the browsewindow to form1 or something.
>>>I think this is a good way to get a good overview over the table and show more detailed information on the records in form1. The users can in this case, choose which fields to be shown in the browsewindow, and they like that option.
>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform