Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 To: Samir H.
  Where is Samir H.?
 Yogyakarta
 Indonesia
 Samir H.
 Tags
Subject: RE: Mimic runtime BROWSE ?
Thread ID: 289257 Message ID: 289280 # Views: 50 # Ratings: 3
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Thursday, December 30, 2010 10:05:05 AM         
   


> Hi all
> I am creating a form to replace the BROWSE that I use in my runtine app.
> I would like the form to release when the user clicks somewhere outside of the form, i.e. he clicks the screen, a menu or anything else outside the borders of my frmBrowse.scx.
> Just like the BROWSE behavior at runtime (without the SAVE clause). If we click outside of the browse-grid, the grid disapears.
>
> Problem: I have put thisform.release() in form.lostfocus(), and the result is as expected, but it works only on modeless forms, which means that code after [DO FORM frmBrowse] runs right away when running the custom-browse form. I do not want that: I want the code to wait until frmBrowse is released, and then run.
>
> If I use a modal form, everything is fine. Code after [DO FORM frmBrowse] runs only after the form is released. But the user can't click outside the form to release it, which I think is convenient.
>
> The vfp BROWSE command can combine those 2 modal-modeless functions. Is it possible with a form?
>
>
>
* frmBrowse.lostfocus() -> modeless -> datasession 1
> thisform.release() && Problem when modeless: code after DO FORM doesn't wait for frmBrowse.release
> 
> * some other form -> cmdBrowse.click()
> SELECT students
> DO FORM frmBrowse  && user will move record pointer in students.dbf
> 
> * the code below must wait till the form above is released in order to
> * get the correct [students.stud_name] value.
> thisform.txtStudentName.value = students.stud_name
> 

> Regards
> Samir
Hi,

To browse a table is just an other way of showing the table contents in a grid.
A very fine article about how to make use of the browse command can be found at Woody's blog: http://code.msdn.microsoft.com/FoxPro and look for the hyperlink: BROWSE tricks.

Regards,
Koen

ENTIRE THREAD

Mimic runtime BROWSE ? Posted by Samir H. @ 12/30/2010 5:25:02 AM
RE: Mimic runtime BROWSE ? Posted by Stefan Wuebbe @ 12/30/2010 9:52:13 AM
RE: Mimic runtime BROWSE ? Posted by Samir H. @ 12/30/2010 10:17:14 AM
RE: Mimic runtime BROWSE ? Posted by Stefan Wuebbe @ 12/31/2010 9:43:26 AM
RE: Mimic runtime BROWSE ? Posted by Samir H. @ 12/31/2010 9:49:00 AM
RE: Mimic runtime BROWSE ? Posted by Stefan Wuebbe @ 12/31/2010 9:57:32 AM
RE: Mimic runtime BROWSE ? Posted by Koen Piller @ 12/30/2010 10:05:05 AM
RE: Mimic runtime BROWSE ? Posted by Samir H. @ 12/30/2010 10:12:28 AM
RE: Mimic runtime BROWSE ? Posted by Samir H. @ 12/31/2010 3:32:05 AM